Ejemplo n.º 1
0
 public function testErrorHandlerPluginNotRegisteredIfNoErrorHandlerSet()
 {
     $this->assertFalse($this->_controller->hasPlugin('\\Zend\\Controller\\Plugin\\ErrorHandler'));
     $request = new Request\Http('http://example.com/index/index');
     $this->_controller->setParam('noErrorHandler', true)->setResponse(new Response\Cli());
     $response = $this->_controller->dispatch($request);
     $this->assertFalse($this->_controller->hasPlugin('\\Zend\\Controller\\Plugin\\ErrorHandler'));
 }