/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @access protected */ protected function setUp() { $this->request = new Zend_Controller_Request_Http(); $this->response = new Zend_Controller_Response_Http(); $this->plugin = new Zend_Controller_Plugin_ErrorHandler(); $this->plugin->setRequest($this->request); $this->plugin->setResponse($this->response); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @access protected */ protected function setUp() { Controller\Front::getInstance()->resetInstance(); $this->request = new Request\Http(); $this->response = new \Zend\Controller\Response\Http(); $this->plugin = new Plugin\ErrorHandler(); $this->plugin->setRequest($this->request); $this->plugin->setResponse($this->response); }