You are here

public function LegacyApacheMatcherDumperTest::provideEscapeFixtures in Zircon Profile 8

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

File

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

Class

LegacyApacheMatcherDumperTest
@group legacy

Namespace

Symfony\Component\Routing\Tests\Matcher\Dumper

Code

public function provideEscapeFixtures() {
  return array(
    array(
      'foo',
      'foo',
      ' ',
      '-',
      'Preserve string that should not be escaped',
    ),
    array(
      'fo-o',
      'fo-o',
      ' ',
      '-',
      'Preserve string that should not be escaped',
    ),
    array(
      'fo o',
      'fo- o',
      ' ',
      '-',
      'Escape special characters',
    ),
    array(
      'fo-- o',
      'fo--- o',
      ' ',
      '-',
      'Escape special characters',
    ),
    array(
      'fo- o',
      'fo- o',
      ' ',
      '-',
      'Do not escape already escaped string',
    ),
  );
}