/** * @test */ public function splitShouldBeCorrectOnEmptyCollection() { $collection = new IteratorCollection(new \ArrayIterator(array())); list($collection1, $collection2) = $collection->splitAt(2); assertSame(0, count($collection1)); assertSame(0, count($collection2)); }