Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
InputTagTest | n/a |
0 / 0 |
|
100.00% |
6 / 6 |
7 | n/a |
0 / 0 |
||
setUp | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
tearDown | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testSetValue | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetValue | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testGetTagName | |
100.00% |
1 / 1 |
1 | n/a |
0 / 0 |
||||
testDraw | |
100.00% |
1 / 1 |
2 | n/a |
0 / 0 |
<?php | |
namespace Test\Ease\Html; | |
/** | |
* Generated by PHPUnit_SkeletonGenerator on 2016-01-17 at 23:58:47. | |
*/ | |
class InputTagTest extends TagTest | |
{ | |
/** | |
* @var InputTag | |
*/ | |
protected $object; | |
/** | |
* Sets up the fixture, for example, opens a network connection. | |
* This method is called before a test is executed. | |
*/ | |
protected function setUp() | |
{ | |
$this->object = new \Ease\Html\InputTag('test'); | |
} | |
/** | |
* Tears down the fixture, for example, closes a network connection. | |
* This method is called after a test is executed. | |
*/ | |
protected function tearDown() | |
{ | |
} | |
/** | |
* @covers Ease\Html\InputTag::setValue | |
* | |
* @todo Implement testSetValue(). | |
*/ | |
public function testSetValue() | |
{ | |
$this->object->setValue('val'); | |
$this->assertEquals('val', $this->object->getTagProperty('value')); | |
} | |
/** | |
* @covers Ease\Html\InputTag::getValue | |
* | |
* @todo Implement testGetValue(). | |
*/ | |
public function testGetValue() | |
{ | |
// Remove the following lines when you implement this test. | |
$this->markTestIncomplete( | |
'This test has not been implemented yet.' | |
); | |
} | |
/** | |
* @covers Ease\Html\InputTag::getTagName | |
*/ | |
public function testGetTagName() | |
{ | |
$this->assertEquals('test', $this->object->getTagName()); | |
$this->object->setName = true; | |
$this->object->setTagName('Test'); | |
$this->assertEquals('Test', $this->object->getTagName()); | |
} | |
/** | |
* @covers Ease\Html\InputTag::draw | |
*/ | |
public function testDraw($whatWant = null) | |
{ | |
if (is_null($whatWant)) { | |
$whatWant = ' | |
<input name="test" />'; | |
} | |
parent::testDraw($whatWant); | |
} | |
} |