IntegerListTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getListClassName() 0 4 1
A getValidParameters() 0 9 1
A getInvalidParameters() 0 10 1
1
<?php
2
namespace Test\Vehsamrak\ListCollection;
3
4
use Vehsamrak\ListCollection\IntegerList;
5
6
class IntegerListTest extends AbstractListTest
7
{
8
    protected function getListClassName(): string
9
    {
10
        return IntegerList::class;
11
    }
12
13
    public function getValidParameters()
14
    {
15
        return [
16
            [[]],
17
            [[1]],
18
            [[1,2]],
19
            [[1,2,3]],
20
        ];
21
    }
22
23
    public function getInvalidParameters()
24
    {
25
        return [
26
            [[1.1]],
27
            [['string']],
28
            [[1, 'string']],
29
            [[new self()]],
30
            [[true]],
31
        ];
32
    }
33
}
34