public function testGetOneOrNullResult_withTwoResults() { $this->phpcrQuery->expects($this->once())->method('execute')->will($this->returnValue(array('ok1', 'ok2'))); $this->query->getOneOrNullResult(Query::HYDRATE_PHPCR); }