$route_match =
$this->
createMock('Drupal\Core\Routing\RouteMatchInterface'
);
$this->pathMatcher =
new PathMatcher($config_factory_stub,
$route_match);
} /**
* Tests that standard paths works with multiple patterns.
*
* @dataProvider getMatchPathData
*/
public function testMatchPath($patterns,
$paths) { foreach ($paths as $path =>
$expected_result) { $actual_result =
$this->pathMatcher->
matchPath($path,
$patterns);
$this->
assertEquals($actual_result,
$expected_result, "Tried matching the path '
$path' to the pattern '
$patterns'."
);
} } /**
* Provides test path data.
*
* @return array
* A nested array of pattern arrays and path arrays.
*/
public function getMatchPathData() {