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

ArrayListTest::getInvalidParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

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