Passed
Push — master ( 39e51c...ca88cb )
by Alex
03:38
created

ConstructorUnitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructorValid() 0 7 1
1
<?php
2
namespace Mezon\Gui\Tests\Common;
3
4
use Mezon\Gui\ListBuilder;
5
use Mezon\Gui\Tests\ListBuilderTestsBase;
6
use Mezon\Gui\Tests\FakeAdapter;
7
8
class ConstructorUnitTest extends ListBuilderTestsBase
9
{
10
11
    /**
12
     * Testing constructor
13
     */
14
    public function testConstructorValid(): void
15
    {
16
        // setup and test body
17
        $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter());
18
19
        // assertions
20
        $this->assertIsArray($listBuilder->getFields(), 'Invalid fields list type');
21
    }
22
}
23