public function test_getiterator() { $arc = new ArrayCollection(array('aap', 'noot')); $this->assertInstanceOf('\\ArrayIterator', $arc->getIterator()); }
/** {@inheritDoc} */ public function getIterator() { $this->initialize(); return $this->collection->getIterator(); }