public function RouterTest::testMatchRequestWithUrlMatcherInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouterTest.php \Symfony\Component\Routing\Tests\RouterTest::testMatchRequestWithUrlMatcherInterface()
File
- vendor/
symfony/ routing/ Tests/ RouterTest.php, line 138
Class
Namespace
Symfony\Component\Routing\TestsCode
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('/'));
}