public static function allowAll($uri, $controller, $options = array()) { self::addRoute(self::$methods, $uri, $controller, false, $options); }
/** * @test */ public function shouldExceptActionInAllAllow() { //given Route::allowAll('/sample', 'sample', array('except' => array('except'))); //when try { $this->get('/sample/except'); $this->fail(); } catch (RouterException $e) { //then $this->assertEquals('No route rule found for HTTP method [GET] and URI [/sample/except]', $e->getMessage()); } }