| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testInput() |
||
| 11 | { |
||
| 12 | $res = FormItem::input('text', 'myInput', "accentué", 'Mon input'); |
||
| 13 | $this->assertEquals( |
||
| 14 | '<label for="myInput">Mon input</label><input type="text" name="myInput" id="myInput" value="accentué"/>', |
||
| 15 | $res |
||
| 16 | ); |
||
| 17 | |||
| 18 | $res = FormItem::input('text', 'myInput', null, 'Mon input'); |
||
| 19 | $this->assertEquals( |
||
| 20 | '<label for="myInput">Mon input</label><input type="text" name="myInput" id="myInput"/>', |
||
| 21 | $res |
||
| 22 | ); |
||
| 23 | |||
| 24 | $res = FormItem::input('text', 'myInput', "testval"); |
||
| 25 | $this->assertEquals( |
||
| 26 | '<input type="text" name="myInput" value="testval"/>', |
||
| 27 | $res |
||
| 28 | ); |
||
| 31 |