Ejemplo n.º 1
0
 /**
  * Whether this route will handle the current URI or not
  *
  * @param string $uri
  * @return boolean
  */
 public function doesHandle($uri)
 {
     return PatternMatcher::isMatching($uri, $this->pattern);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider dataRoutesInvalid
  */
 public function testNegativeRouteMatchRecognition($string, $pattern)
 {
     self::assertFalse(PatternMatcher::isMatching($string, $pattern));
 }