/** * @test */ public function lastElementShouldBeCorrectOnEmptyCollection() { $collection = new IteratorCollection(new \ArrayIterator(array())); assertEquals(new None(), $collection->last()); }