You are here

public function DynamicRouterTest::testMatchFilter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\DynamicRouterTest::testMatchFilter()

@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException

File

vendor/symfony-cmf/routing/Tests/Routing/DynamicRouterTest.php, line 211

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testMatchFilter() {
  $router = new DynamicRouter($this->context, $this->matcher, $this->generator, '#/different/prefix.*#');
  $router
    ->addRouteEnhancer($this->enhancer);
  $this->matcher
    ->expects($this
    ->never())
    ->method('match');
  $this->enhancer
    ->expects($this
    ->never())
    ->method('enhance');
  $router
    ->match($this->url);
}