public function UrlGeneratorTest::testDefaultRequirementOfVariableDisallowsNextSeparator

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

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testDefaultRequirementOfVariableDisallowsNextSeparator() {
  $routes = $this
    ->getRoutes('test', new Route('/{page}.{_format}'));
  $this
    ->getGenerator($routes)
    ->generate('test', array(
    'page' => 'do.t',
    '_format' => 'html',
  ));
}