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