예제 #1
0
 /**
  * @expectedException Felipecwb\Routing\Exception\RouteNotFoundException
  */
 public function testMatchNotExistsRoute()
 {
     $collection = new RouteCollection();
     $matcher = new Matcher($collection);
     $matcher->match('/not-found');
     // throw an RouteNotFoundException
 }
예제 #2
0
 /**
  * Match a Route
  * @param string $path String to be matched by pattern
  * @throws RouteNotFoundException
  * @return Route
  */
 public function match($path)
 {
     return $this->matcher->match($path);
 }