public function DynamicRouterTest::testMatchUrlWithRequestMatcher

@expectedException \InvalidArgumentException

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/DynamicRouterTest.php, line 232

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);
}