You are here

public function UrlGeneratorTest::testWithHostSameAsContext in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php \Symfony\Component\Routing\Tests\Generator\UrlGeneratorTest::testWithHostSameAsContext()

File

vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php, line 403

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testWithHostSameAsContext() {
  $routes = $this
    ->getRoutes('test', new Route('/{name}', array(), array(), array(), '{locale}.example.com'));
  $this
    ->assertEquals('/app.php/Fabien', $this
    ->getGenerator($routes, array(
    'host' => 'fr.example.com',
  ))
    ->generate('test', array(
    'name' => 'Fabien',
    'locale' => 'fr',
  )));
}