Example #1
0
 public function testAutoloadContainerFromRegistry()
 {
     $oldReg = null;
     if (Zend_Registry::isRegistered(self::REGISTRY_KEY)) {
         $oldReg = Zend_Registry::get(self::REGISTRY_KEY);
     }
     Zend_Registry::set(self::REGISTRY_KEY, $this->_nav1);
     $this->_helper->setContainer();
     $expected = $this->_getExpected('bc/default.html');
     $actual = $this->_helper->render();
     Zend_Registry::set(self::REGISTRY_KEY, $oldReg);
     $this->assertEquals($expected, $actual);
 }