StringListTest::getValidParameters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
dl 8
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 Vehsamrak\ListCollection\StringList;
5
6 View Code Duplication
class StringListTest extends AbstractListTest
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
7
{
8
    protected function getListClassName(): string
9
    {
10
        return StringList::class;
11
    }
12
13
    public function getValidParameters()
14
    {
15
        return [
16
            [[]],
17
            [['first']],
18
            [['first', 'second']],
19
        ];
20
    }
21
22
    public function getInvalidParameters()
23
    {
24
        return [
25
            [[1.1]],
26
            [[1]],
27
            [[1, 'string']],
28
            [[new self()]],
29
            [[true]],
30
        ];
31
    }
32
}
33