public function testCanCreateCorsRequestListener()
 {
     $serviceManager = ServiceManagerFactory::getServiceManager();
     $listener = $serviceManager->get('ZfrCors\\Mvc\\CorsRequestListener');
     $this->assertInstanceOf('ZfrCors\\Mvc\\CorsRequestListener', $listener);
 }
Ejemplo n.º 2
0
 public function testCanCreateOptions()
 {
     $serviceManager = ServiceManagerFactory::getServiceManager();
     $options = $serviceManager->get('ZfrCors\\Options\\CorsOptions');
     $this->assertInstanceOf('ZfrCors\\Options\\CorsOptions', $options);
 }
Ejemplo n.º 3
0
 public function testCanCreateCorsService()
 {
     $serviceManager = ServiceManagerFactory::getServiceManager();
     $service = $serviceManager->get('ZfrCors\\Service\\CorsService');
     $this->assertInstanceOf('ZfrCors\\Service\\CorsService', $service);
 }