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