NullFilterIteratorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNullFilter() 0 7 1
1
<?php
2
3
namespace itertools;
4
5
use PHPUnit_Framework_TestCase;
6
use stdClass;
7
8
class NullFilterIteratorTest extends PHPUnit_Framework_TestCase
9
{
10
    /** @test */
11
    public function testNullFilter()
12
    {
13
        $object = new stdClass();
14
        $input = array(0, 'null', null, false, $object);
15
        $expectedResult = array(0, 'null', false, $object);
16
        $this->assertEquals($expectedResult, iterator_to_array(new NullFilterIterator($input), false));
17
    }
18
}
19