public function testGetSingleResult_noResult() { $this->phpcrQuery->expects($this->once())->method('execute')->will($this->returnValue(array())); $this->query->getSingleResult(Query::HYDRATE_PHPCR); }