/** * @test * * @expectedException \UnderflowException */ public function tailShouldBeCorrectOnEmptyCollection() { $collection = new IteratorCollection(new \ArrayIterator(array())); $tail = $collection->tail(); }