basePath = dirname(__FILE__) . '/_files/modules'; $this->helper = new Zend_View_Helper_InlineScript(); } /** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * @return void */ public function tearDown() { unset($this->helper); } public function testNamespaceRegisteredInPlaceholderRegistryAfterInstantiation() { $registry = Zend_View_Helper_Placeholder_Registry::getRegistry(); if ($registry->containerExists('Zend_View_Helper_InlineScript')) { $registry->deleteContainer('Zend_View_Helper_InlineScript'); } $this->assertFalse($registry->containerExists('Zend_View_Helper_InlineScript')); $helper = new Zend_View_Helper_InlineScript(); $this->assertTrue($registry->containerExists('Zend_View_Helper_InlineScript')); } public function testInlineScriptReturnsObjectInstance() { $placeholder = $this->helper->inlineScript(); $this->assertTrue($placeholder instanceof Zend_View_Helper_InlineScript); } } // Call Zend_View_Helper_InlineScriptTest::main() if this source file is executed directly. if (PHPUnit_MAIN_METHOD == "Zend_View_Helper_InlineScriptTest::main") { Zend_View_Helper_InlineScriptTest::main(); }