Completed
Push — master ( f5663b...684232 )
by Shcherbak
01:55
created

PredefinedStringListTest::testAll()   A

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;
4
5
use PHPUnit\Framework\TestCase;
6
7
class PredefinedStringListTest extends TestCase
8
{
9 1
    public function testAll(): void
10
    {
11 1
        self::assertSame(
12 1
            ['a', 'b'],
13 1
            iterator_to_array(
14 1
                (new PredefinedStringList('a', 'b'))->all()
15
            )
16
        );
17 1
    }
18
}
19