You are here

public function DumperTest::getEscapeSequences in Lockr 7.3

File

vendor/symfony/yaml/Tests/DumperTest.php, line 276

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getEscapeSequences() {
  return [
    'empty string' => [
      '',
      "''",
    ],
    'null' => [
      "\0",
      '"\\0"',
    ],
    'bell' => [
      "\7",
      '"\\a"',
    ],
    'backspace' => [
      "\10",
      '"\\b"',
    ],
    'horizontal-tab' => [
      "\t",
      '"\\t"',
    ],
    'line-feed' => [
      "\n",
      '"\\n"',
    ],
    'vertical-tab' => [
      "\v",
      '"\\v"',
    ],
    'form-feed' => [
      "\f",
      '"\\f"',
    ],
    'carriage-return' => [
      "\r",
      '"\\r"',
    ],
    'escape' => [
      "\33",
      '"\\e"',
    ],
    'space' => [
      ' ',
      "' '",
    ],
    'double-quote' => [
      '"',
      "'\"'",
    ],
    'slash' => [
      '/',
      '/',
    ],
    'backslash' => [
      '\\',
      '\\',
    ],
    'next-line' => [
      "…",
      '"\\N"',
    ],
    'non-breaking-space' => [
      " ",
      '"\\_"',
    ],
    'line-separator' => [
      "
",
      '"\\L"',
    ],
    'paragraph-separator' => [
      "
",
      '"\\P"',
    ],
    'colon' => [
      ':',
      "':'",
    ],
  ];
}