/** * @expectedException \RuntimeException */ public function testYouCanOnlyPassObjectsHavingGetRidMethodAsArgumentsOfFindSomeBySomething() { $repository = new Repository('My\\Class', $this->prepareManager(new \Doctrine\OrientDB\Binding\HttpBinding(new \Doctrine\OrientDB\Binding\BindingParameters()))); $documents = $repository->findOneByJeex(new \stdClass()); }