public function ChainRouterTest::testContext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ChainRouterTest::testContext()
context must be propagated to chained routers and be stored locally
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ChainRouterTest.php, line 140
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testContext() {
list($low, $high) = $this
->createRouterMocks();
$low
->expects($this
->once())
->method('setContext')
->with($this->context);
$high
->expects($this
->once())
->method('setContext')
->with($this->context);
$this->router
->add($low, 10);
$this->router
->add($high, 100);
$this->router
->setContext($this->context);
$this
->assertSame($this->context, $this->router
->getContext());
}