Passed
Push — master ( 4d86c4...586e6b )
by Alex
02:58
created

ConstructorUnitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

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