public function UrlGeneratorTest::testWithHostDifferentFromContext in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php \Symfony\Component\Routing\Tests\Generator\UrlGeneratorTest::testWithHostDifferentFromContext()
File
- vendor/
symfony/ routing/ Tests/ Generator/ UrlGeneratorTest.php, line 396
Class
Namespace
Symfony\Component\Routing\Tests\GeneratorCode
public function testWithHostDifferentFromContext() {
$routes = $this
->getRoutes('test', new Route('/{name}', array(), array(), array(), '{locale}.example.com'));
$this
->assertEquals('//fr.example.com/app.php/Fabien', $this
->getGenerator($routes)
->generate('test', array(
'name' => 'Fabien',
'locale' => 'fr',
)));
}