You are here

public function UrlMatcherTest::testDefaultRequirementOfVariableDisallowsNextSeparator in Zircon Profile 8

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

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

File

vendor/symfony/routing/Tests/Matcher/UrlMatcherTest.php, line 306

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testDefaultRequirementOfVariableDisallowsNextSeparator() {
  $coll = new RouteCollection();
  $coll
    ->add('test', new Route('/{page}.{_format}', array(), array(
    '_format' => 'html|xml',
  )));
  $matcher = new UrlMatcher($coll, new RequestContext());
  $matcher
    ->match('/do.t.html');
}