public function UrlGeneratorTest::testWithHostDifferentFromContext

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php, line 394

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