public function UrlGeneratorTest::testDefaultRequirementOfVariableDisallowsSlash

@expectedException \Symfony\Component\Routing\Exception\InvalidParameterException

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testDefaultRequirementOfVariableDisallowsSlash() {
  $routes = $this
    ->getRoutes('test', new Route('/{page}.{_format}'));
  $this
    ->getGenerator($routes)
    ->generate('test', array(
    'page' => 'index',
    '_format' => 'sl/ash',
  ));
}