You are here

public function UrlGeneratorTest::testNoTrailingSlashForMultipleOptionalParameters in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php \Symfony\Component\Routing\Tests\Generator\UrlGeneratorTest::testNoTrailingSlashForMultipleOptionalParameters()

File

vendor/symfony/routing/Tests/Generator/UrlGeneratorTest.php, line 277

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testNoTrailingSlashForMultipleOptionalParameters() {
  $routes = $this
    ->getRoutes('test', new Route('/category/{slug1}/{slug2}/{slug3}', array(
    'slug2' => null,
    'slug3' => null,
  )));
  $this
    ->assertEquals('/app.php/category/foo', $this
    ->getGenerator($routes)
    ->generate('test', array(
    'slug1' => 'foo',
  )));
}