Ejemplo n.º 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_Controller_Front::getInstance()->resetInstance();
     if (Zend_Controller_Action_HelperBroker::hasHelper('Layout')) {
         Zend_Controller_Action_HelperBroker::removeHelper('Layout');
     }
     if (Zend_Controller_Action_HelperBroker::hasHelper('viewRenderer')) {
         Zend_Controller_Action_HelperBroker::removeHelper('viewRenderer');
     }
     Zend_View_Helper_LayoutTest_Layout::$_mvcInstance = null;
 }
Ejemplo n.º 2
0
 public static function resetMvcInstance()
 {
     self::$_mvcInstance = null;
 }