You are here

public function DynamicRouterTest::testMatchUrlWithRequestMatcher 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::testMatchUrlWithRequestMatcher()

@expectedException \InvalidArgumentException

File

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

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testMatchUrlWithRequestMatcher() {
  $matcher = $this
    ->buildMock('Symfony\\Component\\Routing\\Matcher\\RequestMatcherInterface', array(
    'matchRequest',
    'setContext',
    'getContext',
  ));
  $router = new DynamicRouter($this->context, $matcher, $this->generator);
  $router
    ->match($this->url);
}