public function DynamicRouterTest::testMatchRequestFilter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\DynamicRouterTest::testMatchRequestFilter()
@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ DynamicRouterTest.php, line 230
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testMatchRequestFilter() {
$matcher = $this
->buildMock('Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface', array(
'matchRequest',
'setContext',
'getContext',
));
$router = new DynamicRouter($this->context, $matcher, $this->generator, '#/different/prefix.*#');
$router
->addRouteEnhancer($this->enhancer);
$matcher
->expects($this
->never())
->method('matchRequest');
$this->enhancer
->expects($this
->never())
->method('enhance');
$router
->matchRequest($this->request);
}