public function ChainRouterTest::testPriority 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::testPriority()
File
- vendor/
symfony-cmf/ routing/ Tests/ Routing/ ChainRouterTest.php, line 45
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\RoutingCode
public function testPriority() {
$this
->assertEquals(array(), $this->router
->all());
list($low, $high) = $this
->createRouterMocks();
$this->router
->add($low, 10);
$this->router
->add($high, 100);
$this
->assertEquals(array(
$high,
$low,
), $this->router
->all());
}