You are here

public function LegacyApacheMatcherDumperTest::testEscapePattern in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php \Symfony\Component\Routing\Tests\Matcher\Dumper\LegacyApacheMatcherDumperTest::testEscapePattern()

@dataProvider provideEscapeFixtures

File

vendor/symfony/routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php, line 40

Class

LegacyApacheMatcherDumperTest
@group legacy

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