public function ApacheMatcherDumperTest::provideEscapeFixtures

File

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

Class

ApacheMatcherDumperTest

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