| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class TextFieldUnitTest extends TestCase |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Testing constructor |
||
| 16 | */ |
||
| 17 | public function testConstructor():void |
||
| 18 | { |
||
| 19 | // setup |
||
| 20 | $field = new TextField([ |
||
| 21 | 'text' => 'name' |
||
| 22 | ]); |
||
| 23 | |||
| 24 | // test body |
||
| 25 | $content = $field->html(); |
||
| 26 | |||
| 27 | // assertions |
||
| 28 | $this->assertEquals('name', $content, 'Text was not fetched'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Testing fillAllRow method |
||
| 33 | */ |
||
| 34 | public function testFillAllRow(): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 |