Example #1
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Zend_View_Helper_JsonTest_Layout::$_mvcInstance = null;
     $this->response = new Zend_Controller_Response_Http();
     $this->response->headersSentThrowsException = false;
     $front = Zend_Controller_Front::getInstance();
     $front->resetInstance();
     $front->setResponse($this->response);
     $this->helper = new Zend_View_Helper_Json();
 }
Example #2
0
 public static function resetMvcInstance()
 {
     self::$_mvcInstance = null;
 }