public function RouteCollectionTest::testSetHost in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouteCollectionTest.php \Symfony\Component\Routing\Tests\RouteCollectionTest::testSetHost()
File
- vendor/
symfony/ routing/ Tests/ RouteCollectionTest.php, line 234
Class
Namespace
Symfony\Component\Routing\TestsCode
public function testSetHost() {
$collection = new RouteCollection();
$routea = new Route('/a');
$routeb = new Route('/b', array(), array(), array(), '{locale}.example.net');
$collection
->add('a', $routea);
$collection
->add('b', $routeb);
$collection
->setHost('{locale}.example.com');
$this
->assertEquals('{locale}.example.com', $routea
->getHost());
$this
->assertEquals('{locale}.example.com', $routeb
->getHost());
}