You are here

public function RouterTest::testMatchRequestWithUrlMatcherInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testMatchRequestWithUrlMatcherInterface()

File

vendor/symfony/routing/Tests/RouterTest.php, line 138

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testMatchRequestWithUrlMatcherInterface() {
  $matcher = $this
    ->getMock('Symfony\\Component\\Routing\\Matcher\\UrlMatcherInterface');
  $matcher
    ->expects($this
    ->once())
    ->method('match');
  $p = new \ReflectionProperty($this->router, 'matcher');
  $p
    ->setAccessible(true);
  $p
    ->setValue($this->router, $matcher);
  $this->router
    ->matchRequest(Request::create('/'));
}