public function testIterable()
 {
     $c = new Collection(array('foo'));
     $this->assertInstanceOf('ArrayIterator', $c->getIterator());
     $this->assertEquals(array('foo'), $c->getIterator()->getArrayCopy());
 }
Beispiel #2
0
 /**
  * Get an iterator for the results.
  *
  * @throws \Adrianyg7\Filterer\Exceptions\FiltererException
  * @return \ArrayIterator
  */
 public function getIterator()
 {
     return $this->results->getIterator();
 }