Pinq\Tests\Integration\Traversable\IteratorSchemeTest::testThatArrayCompatibleIsNotUsedForArrays PHP Method

testThatArrayCompatibleIsNotUsedForArrays() public method

public testThatArrayCompatibleIsNotUsedForArrays ( Pinq\Iterators\IIteratorScheme $scheme )
$scheme Pinq\Iterators\IIteratorScheme
    public function testThatArrayCompatibleIsNotUsedForArrays(IIteratorScheme $scheme)
    {
        $iterator = Traversable::from([1, 2, 3], $scheme)->where(function () {
            return true;
        })->select(function ($v) {
            return $v;
        })->getIterator();
        $this->assertNotInstanceOf(get_class($scheme->arrayCompatibleIterator(new \EmptyIterator())), $iterator);
    }