public function testWhenReturnTypeIsArrayThenIterationReturnsArrays() { $this->set->setReturnType(ResultSet::TYPE_ARRAY); $dataSource = $this->getArrayDataSource(10); $this->set->setDataSource($dataSource); foreach ($this->set as $index => $row) { $this->assertEquals($dataSource[$index], $row); } }