Passed
Push — master ( e86fff...e18c6a )
by Petr
01:43
created

CollectionListTest::getValidParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Test\Vehsamrak\ListCollection;
3
4
use Doctrine\Common\Collections\ArrayCollection;
5
use Vehsamrak\ListCollection\CollectionList;
6
use Vehsamrak\ListCollection\FloatList;
7
use Vehsamrak\ListCollection\IntegerList;
8
9
class CollectionListTest extends AbstractListTest
10
{
11
    protected function getListClassName(): string
12
    {
13
        return CollectionList::class;
14
    }
15
16
    public function getValidParameters()
17
    {
18
        return [
19
            [[]],
20
            [[new ArrayCollection()]],
21
            [[new FloatList(), new IntegerList()]],
22
        ];
23
    }
24
25
    public function getInvalidParameters()
26
    {
27
        return [
28
            [['string']],
29
            [[1]],
30
            [[1, 'string']],
31
            [[new self()]],
32
            [[true]],
33
        ];
34
    }
35
}
36