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