public function UrlGeneratorTest::testRelativeUrlWithNullParameter

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

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