You are here

public function UrlGeneratorTest::testWithHostDifferentFromContext in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

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',
  )));
}