public function UrlMatcherTest::testRequiredVariableWithNoRealSeparator

File

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

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'));
}