phpstream\tests\unit\operations\SkipOperationTest::testSkip PHP Method

testSkip() public method

public testSkip ( )
    public function testSkip()
    {
        $instance = new SkipOperation([1, 2, 3, 4], 2);
        $result = iterator_to_array($instance);
        $expected = [2 => 3, 3 => 4];
        $this->assertEquals($expected, $result);
    }