You are here

public function DumperTest::getEscapeSequences in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php \Symfony\Component\Yaml\Tests\DumperTest::getEscapeSequences()

File

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

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

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