public function testAutoloadingContainerFromRegistry() { $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(null); $expected = $this->_getExpected('menu/default1.html'); $actual = $this->_helper->render(); Zend_Registry::set(self::REGISTRY_KEY, $oldReg); $this->assertEquals($expected, $actual); }
public function testNullingOutContainerInHelper() { $this->_helper->setContainer(); $this->assertEquals(0, count($this->_helper->getContainer())); }