| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testConstructor(): void |
||
| 18 | { |
||
| 19 | // setup |
||
| 20 | $field = new LabelField([ |
||
| 21 | 'text' => 'name' |
||
| 22 | ]); |
||
| 23 | |||
| 24 | // test body |
||
| 25 | $content = $field->html(); |
||
| 26 | |||
| 27 | // assertions |
||
| 28 | $this->assertStringContainsString( |
||
| 29 | '<label class="control-label">name</label>', |
||
| 30 | $content, |
||
| 31 | 'Label was not generated'); |
||
| 32 | } |
||
| 62 |