front = Zend_Controller_Front::getInstance(); $this->front->getRouter()->addDefaultRoutes(); // $this->view = new Zend_View(); $this->helper = new Zend_View_Helper_Url(); // $this->helper->setView($this->view); } public function testDefaultEmpty() { $url = $this->helper->url(); $this->assertEquals('/', $url); } public function testDefault() { $url = $this->helper->url(array('controller' => 'ctrl', 'action' => 'act')); $this->assertEquals('/ctrl/act', $url); } } // Call Zend_View_Helper_UrlTest::main() if this source file is executed directly. if (PHPUnit_MAIN_METHOD == "Zend_View_Helper_UrlTest::main") { Zend_View_Helper_UrlTest::main(); }