public function UrlMatcherTest::testDefaultRequirementOfVariableDisallowsSlash

@expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php, line 292

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testDefaultRequirementOfVariableDisallowsSlash() {
  $coll = new RouteCollection();
  $coll
    ->add('test', new Route('/{page}.{_format}'));
  $matcher = new UrlMatcher($coll, new RequestContext());
  $matcher
    ->match('/index.sl/ash');
}