public function magicCallMethodTriggersAnErrorIfUnknownMethodsAreCalled() { $repository = $this->getMockBuilder(Persistence\Repository::class)->setMethods(['createQuery'])->getMock(); $repository->__call('foo', []); }