public function UrlGeneratorTest::testRelativeUrlWithNullParameterButNotOptional

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

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