You are here

public function ChainRouterTest::testPriority in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ChainRouterTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

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());
}