You are here

public function RouteCollectionTest::testOverriddenRoute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouteCollectionTest.php \Symfony\Component\Routing\Tests\RouteCollectionTest::testOverriddenRoute()

File

vendor/symfony/routing/Tests/RouteCollectionTest.php, line 30

Class

RouteCollectionTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testOverriddenRoute() {
  $collection = new RouteCollection();
  $collection
    ->add('foo', new Route('/foo'));
  $collection
    ->add('foo', new Route('/foo1'));
  $this
    ->assertEquals('/foo1', $collection
    ->get('foo')
    ->getPath());
}