コード例 #1
0
ファイル: Route.php プロジェクト: apexstudios/yamwlib
 /**
  * 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);
 }
コード例 #2
0
 /**
  * @dataProvider dataRoutesInvalid
  */
 public function testNegativeRouteMatchRecognition($string, $pattern)
 {
     self::assertFalse(PatternMatcher::isMatching($string, $pattern));
 }