You are here

public function RouteCompilerTest::testRouteWithNumericVariableName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouteCompilerTest.php \Symfony\Component\Routing\Tests\RouteCompilerTest::testRouteWithNumericVariableName()

@dataProvider getNumericVariableNames @expectedException \DomainException

File

vendor/symfony/routing/Tests/RouteCompilerTest.php, line 168

Class

RouteCompilerTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testRouteWithNumericVariableName($name) {
  $route = new Route('/{' . $name . '}');
  $route
    ->compile();
}