| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class FormHeaderUnitTest extends \PHPUnit\Framework\TestCase |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Testing constructor |
||
| 9 | */ |
||
| 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 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Testing fillAllRow method |
||
| 26 | */ |
||
| 27 | public function testFillAllRow(): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |