You are here

public function UrlMatcherTest::testRequiredVariableWithNoRealSeparator 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::testRequiredVariableWithNoRealSeparator()

File

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

Class

UrlMatcherTest

Namespace

Symfony\Component\Routing\Tests\Matcher

Code

public function testRequiredVariableWithNoRealSeparator() {
  $coll = new RouteCollection();
  $coll
    ->add('test', new Route('/get{what}Suffix'));
  $matcher = new UrlMatcher($coll, new RequestContext());
  $this
    ->assertEquals(array(
    'what' => 'Sites',
    '_route' => 'test',
  ), $matcher
    ->match('/getSitesSuffix'));
}