public function countCallsCountOnTheQuery() { $this->query->expects($this->once())->method('count')->will($this->returnValue(123)); $this->assertEquals(123, $this->queryResult->count()); }