public function UrlGeneratorTest::testRelativeUrlWithOptionalZeroParameter

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

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