Completed
Push — master ( 2b7ec8...e65692 )
by Alex
09:34
created

FormHeaderUnitTest::testFillAllRow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Mezon\Gui\FormBuilder\Tests;
3
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
28
    {
29
        // setup
30
        $field = new \Mezon\Gui\FormBuilder\FormHeader([
31
            'text' => 'name'
32
        ]);
33
34
        // test body and assertions
35
        $this->assertFalse($field->fillAllRow());
36
    }
37
}
38