public function DynamicRouterTest::testGetMatcher

File

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

Class

DynamicRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetMatcher() {
  $this->matcher
    ->expects($this
    ->once())
    ->method('setContext')
    ->with($this
    ->equalTo($this->context));
  $matcher = $this->router
    ->getMatcher();
  $this
    ->assertInstanceOf('Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface', $matcher);
  $this
    ->assertSame($this->matcher, $matcher);
}