public function toArray()
{
$this->initialize();
return $this->rows;
}
/** * @test */ public function countCountsQueryResultDirectlyIfAlreadyInitialized() { $this->query->expects($this->never())->method('count'); $this->queryResult->toArray(); $this->assertEquals(3, $this->queryResult->count()); }