public function UrlGeneratorTest::testWithAnIntegerAsADefaultValue

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testWithAnIntegerAsADefaultValue() {
  $routes = $this
    ->getRoutes('test', new Route('/{default}', array(
    'default' => 0,
  )));
  $this
    ->assertEquals('/app.php/foo', $this
    ->getGenerator($routes)
    ->generate('test', array(
    'default' => 'foo',
  )));
}