public function testNextInArrayCollection() { $collection = new ArrayCollection(array('first', 'last')); $this->assertEquals('first', $collection->current()); $collection->next(); $this->assertEquals('last', $collection->current()); }