You are here

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

File

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

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