/** * */ public function testInit() { Request::set('controller', ''); Request::set('action', ''); $router = Router::getInstance(); $this->assertEquals('This is the base controller and the default action', $router->init()); }
/** * Initialize router * * @return bool */ private function initRouter() { $router = Router::getInstance(); echo $router->init(); return true; }