public function countCountsQueryResultDirectlyIfAlreadyInitialized() { $this->query->expects($this->never())->method('count'); $this->queryResult->toArray(); $this->assertEquals(3, $this->queryResult->count()); }