Пример #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()
 {
     $this->error = false;
     PlaceholderRegistry::unsetRegistry();
     Helper\Doctype::unsetDoctypeRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->view = new View();
     $this->view->plugin('doctype')->__invoke('XHTML1_STRICT');
     $this->helper = new Helper\HeadMeta();
     $this->helper->setView($this->view);
 }
Пример #2
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()
 {
     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->view->doctype('XHTML1_STRICT');
     $this->helper = new Zend_View_Helper_HeadMeta();
     $this->helper->setView($this->view);
 }
Пример #3
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()
 {
     $this->error = false;
     foreach (array(Registry::REGISTRY_KEY, 'Zend_View_Helper_Doctype') as $key) {
         if (\Zend\Registry::isRegistered($key)) {
             $registry = \Zend\Registry::getInstance();
             unset($registry[$key]);
         }
     }
     $this->basePath = __DIR__ . '/_files/modules';
     $this->view = new View\View();
     $this->view->doctype('XHTML1_STRICT');
     $this->helper = new Helper\HeadMeta();
     $this->helper->setView($this->view);
 }