| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testConstructor(): void |
||
| 11 | { |
||
| 12 | // setup |
||
| 13 | $field = new \Mezon\Gui\FormBuilder\FormHeader([ |
||
| 14 | 'text' => 'name' |
||
| 15 | ]); |
||
| 16 | |||
| 17 | // test body |
||
| 18 | $content = $field->html(); |
||
| 19 | |||
| 20 | // assertions |
||
| 21 | $this->assertStringContainsString('<h3>name</h3>', $content, 'Header was not built'); |
||
| 22 | } |
||
| 38 |