prophesize(\core_kernel_classes_Class::class); $resourceProphet->getUri()->willReturn(ConsumerService::CLASS_URI); $consumerServiceProphet = $this->prophesize(ConsumerService::class); $consumerServiceProphet->getRootClass()->willReturn($resourceProphet->reveal()); $service = LtiRestApiService::singleton(); $service->setModel($this->getOntologyMock()); $service->setServiceLocator($this->getServiceLocatorMock([ ConsumerService::class => $consumerServiceProphet->reveal() ])); $this->assertEquals(false, $service->isInScope(ConsumerService::CLASS_URI)); } }