Example #1
0
 public function testMatchesControllerAndParam()
 {
     $route = new Mnl\Router\Route('test/(:num)', 'test#view?id=$1');
     $this->assertTrue($route->matches('/test/7'));
 }
Example #2
0
 public function testMatchesExactControllerAction()
 {
     $route = new Route('test/view', 'test#view');
     $this->assertTrue($route->matches('/test/view/'));
 }