Example #1
0
 public function testAutoArgsThrowsExceptionWithNoArgs()
 {
     $r = new Route('test', '/url/without_args', 'foo', 'bar');
     $r->autoArgs();
     $msg = "A route with auto args must contain ':args' in the url";
     $this->setExpectedException('\\Neptune\\Routing\\RouteFailedException', $msg);
     $r->test($this->request('something'));
 }