/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { PlaceholderRegistry::unsetRegistry(); Helper\Doctype::unsetDoctypeRegistry(); $this->basePath = __DIR__ . '/_files/modules'; $this->view = new View(); $this->helper = new Helper\HeadLink(); $this->helper->setView($this->view); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { foreach (array(Zend_View_Helper_Placeholder_Registry::REGISTRY_KEY, 'Zend_View_Helper_Doctype') as $key) { if (Zend_Registry::isRegistered($key)) { $registry = Zend_Registry::getInstance(); unset($registry[$key]); } } $this->basePath = dirname(__FILE__) . '/_files/modules'; $this->view = new Zend_View(); $this->helper = new Zend_View_Helper_HeadLink(); $this->helper->setView($this->view); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { foreach (array(PlaceholderRegistry::REGISTRY_KEY, 'Zend_View_Helper_Doctype') as $key) { if (Registry::isRegistered($key)) { $registry = Registry::getInstance(); unset($registry[$key]); } } $this->basePath = __DIR__ . '/_files/modules'; $this->view = new View(); $this->helper = new Helper\HeadLink(); $this->helper->setView($this->view); }