UniqueStringListTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAll() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Funivan\CabbageCore\String\StringList\Unique;
6
7
use Funivan\CabbageCore\String\StringList\PredefinedStringList;
8
use PHPUnit\Framework\TestCase;
9
10
class UniqueStringListTest extends TestCase
11
{
12 1
    public function testAll(): void
13
    {
14 1
        self::assertSame(
15 1
            ['a', 'b', 'c'],
16 1
            iterator_to_array(
17 1
                (new UniqueStringList(new PredefinedStringList('a', 'b', 'a', 'c')))->all()
18
            )
19
        );
20 1
    }
21
}
22