ConstructorUnitTest::testConstructorValid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 1
f 0
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