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