Completed
Push — master ( a7a4b1...4dab2b )
by Shcherbak
25:32 queued 10:30
created

CombinedStringListTest::testAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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