/** * 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); }
/** * @dataProvider dataRoutesInvalid */ public function testNegativeRouteMatchRecognition($string, $pattern) { self::assertFalse(PatternMatcher::isMatching($string, $pattern)); }