Ouzo\Utilities\Iterator\BatchingIteratorTest::shouldNotBeValidForEmptyArray PHP Метод

shouldNotBeValidForEmptyArray() публичный Метод

    public function shouldNotBeValidForEmptyArray()
    {
        //given
        $batchIterator = new BatchingIterator(new ArrayIterator(array()), 2);
        //when
        $valid = $batchIterator->valid();
        //then
        $this->assertFalse($valid);
    }