Exemplo n.º 1
0
 /**
  *
  */
 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());
 }
Exemplo n.º 2
0
 /**
  * Initialize router
  *
  * @return bool
  */
 private function initRouter()
 {
     $router = Router::getInstance();
     echo $router->init();
     return true;
 }