/** * rewind * * @return void */ public function rewind() { parent::rewind(); if ($this->valid() && $this->current()->getType() != $this->type) { $this->next(); } }
public function testCount() { $this->assertEquals(10, $this->object->count()); $this->assertEquals(10, count($this->object)); }