markTestSkipped('this test is only vor zend-servicemanager v3'); } $serviceManager->setService( 'LmcRbacMvc\Service\AuthorizationService', $this->createMock('LmcRbacMvc\Service\AuthorizationServiceInterface') ); $factory = new IsGrantedPluginFactory(); $isGranted = $factory($serviceManager, 'LmcRbacMvc\Mvc\Controller\Plugin\IsGranted'); $this->assertInstanceOf('LmcRbacMvc\Mvc\Controller\Plugin\IsGranted', $isGranted); } }