toArray() public method

Returns an array with the objects in the result set
public toArray ( ) : array
return array
コード例 #1
0
 /**
  * @test
  */
 public function countCountsQueryResultDirectlyIfAlreadyInitialized()
 {
     $this->persistenceManager->expects($this->never())->method('getObjectCountByQuery');
     $this->queryResult->toArray();
     $this->assertEquals(2, $this->queryResult->count());
 }