public function ApacheMatcherDumperTest::testEscapePattern

@dataProvider provideEscapeFixtures

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/ApacheMatcherDumperTest.php, line 37

Class

ApacheMatcherDumperTest

Namespace

Symfony\Component\Routing\Tests\Matcher\Dumper

Code

public function testEscapePattern($src, $dest, $char, $with, $message) {
  $r = new \ReflectionMethod(new ApacheMatcherDumper($this
    ->getRouteCollection()), 'escape');
  $r
    ->setAccessible(true);
  $this
    ->assertEquals($dest, $r
    ->invoke(null, $src, $char, $with), $message);
}