/** * @expectedException Exception */ public function testCheckRouteException() { $router = new Router(false); $router->setDI(\Phalcon\Di::getDefault()); $router->add('/test', ['controller' => 'Test', 'action' => 'index'], ['GET'], 2); }