public function UrlGeneratorTest::testRelativeUrlWithParameter

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testRelativeUrlWithParameter() {
  $routes = $this
    ->getRoutes('test', new Route('/testing/{foo}'));
  $url = $this
    ->getGenerator($routes)
    ->generate('test', array(
    'foo' => 'bar',
  ), false);
  $this
    ->assertEquals('/app.php/testing/bar', $url);
}