You are here

public function RouterTest::testMatchRequestWithRequestMatcherInterface 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::testMatchRequestWithRequestMatcherInterface()

File

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

Class

RouterTest

Namespace

Symfony\Component\Routing\Tests

Code

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