CompositeStringListTest::testAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Funivan\CabbageCore\String\StringList\Composite;
4
5
use Funivan\CabbageCore\String\StringList\PredefinedStringList;
6
use PHPUnit\Framework\TestCase;
7
8
class CompositeStringListTest extends TestCase
9
{
10 1
    public function testAll(): void
11
    {
12 1
        self::assertSame(
13 1
            ['a', 'b', 'c'],
14 1
            iterator_to_array(
15 1
                (new CompositeStringList(new PredefinedStringList('a', 'b'), new PredefinedStringList('c')))->all()
16
            )
17
        );
18 1
    }
19
}
20