public function testNullOutContainer() { $old = $this->_helper->getContainer(); $this->_helper->setContainer(); $new = $this->_helper->getContainer(); $this->assertNotEquals($old, $new); }
public function testAutoloadContainerFromRegistry() { $oldReg = null; if (Registry::isRegistered(self::REGISTRY_KEY)) { $oldReg = Registry::get(self::REGISTRY_KEY); } Registry::set(self::REGISTRY_KEY, $this->_nav1); $this->_helper->setContainer(); $expected = $this->_getExpected('bc/default.html'); $actual = $this->_helper->render(); Registry::set(self::REGISTRY_KEY, $oldReg); $this->assertEquals($expected, $actual); }