| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testConstructor() |
||
| 11 | { |
||
| 12 | // setup |
||
| 13 | $field = new \Mezon\Gui\Field\LabelField([ |
||
| 14 | 'text' => 'name' |
||
| 15 | ]); |
||
| 16 | |||
| 17 | // test body |
||
| 18 | $content = $field->html(); |
||
| 19 | |||
| 20 | // assertions |
||
| 21 | $this->assertStringContainsString( |
||
| 22 | '<label class="control-label">name</label>', |
||
| 23 | $content, |
||
| 24 | 'Label was not generated'); |
||
| 25 | } |
||
| 55 |