public function testNextInArrayCollection() { $collection = new ArrayCollection(array('first', 'last')); $this->assertEquals('first', $collection->current()); $collection->next(); $this->assertEquals('last', $collection->current()); }
/** * Gets the current Property. * @return Property */ public function current() { return parent::current(); }