| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function testInputAttributesAndChildren() |
||
| 38 | { |
||
| 39 | $input = new Input(); |
||
| 40 | |||
| 41 | $this->assertEquals(0, count($input->getAttributes())); |
||
| 42 | $this->assertEquals(0, count($input->getChildren())); |
||
| 43 | |||
| 44 | # adding an attribute |
||
| 45 | $input->setAttribute(new Attribute("type", "hidden")); |
||
| 46 | |||
| 47 | $attr = $input->getAttribute('type'); |
||
| 48 | $this->assertEquals("type", $attr->getName()); |
||
| 49 | $this->assertEquals("hidden", $attr->getValue()); |
||
| 50 | } |
||
| 51 | } |