function MockMatcher::matchRequest
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Routing/MockMatcher.php \Drupal\Tests\system\Functional\Routing\MockMatcher::matchRequest()
- 10 core/modules/system/tests/src/Functional/Routing/MockMatcher.php \Drupal\Tests\system\Functional\Routing\MockMatcher::matchRequest()
- 11.x core/modules/system/tests/src/Functional/Routing/MockMatcher.php \Drupal\Tests\system\Functional\Routing\MockMatcher::matchRequest()
File
-
core/
modules/ system/ tests/ src/ Functional/ Routing/ MockMatcher.php, line 31
Class
- MockMatcher
- A mock matcher that can be configured with any matching logic for testing.
Namespace
Drupal\Tests\system\Functional\RoutingCode
public function matchRequest(Request $request) {
$matcher = $this->matcher;
return $matcher($request);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.