public function testGenerateShowLinkTo() { $pfw_routes = $this->getPfwRoutes(); Pfw_Loader::loadClass('Pfw_Controller_Front'); $front = Pfw_Controller_Front::getInstance(); $front->getRouter()->setRoutes($pfw_routes); $smarty = new Pfw_Smarty_Standard(); $params = array('route' => 'default_show', 'controller' => 'foo', 'id' => '123', 'action' => 'bar'); $link = $smarty->_generateLinkTo($params, 'hello world'); $this->assertEquals(rtrim('<a href="/foo/123">hello world</a>'), rtrim($link)); }