minor #21903 [Yaml] Fix the tests (GuilhemN)

This PR was merged into the 2.7 branch.

Discussion
----------

[Yaml] Fix the tests

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Fix tests that are currently useless (previously part of https://github.com/symfony/symfony/pull/19782).

Commits
-------

5107b94baf [Yaml] Fix the tests
This commit is contained in:
Fabien Potencier 2017-03-06 13:38:40 -08:00
commit f3217c3bd1
1 changed files with 19 additions and 17 deletions

View File

@ -210,23 +210,25 @@ EOF;
public function getEscapeSequences() public function getEscapeSequences()
{ {
return array( return array(
'null' => array("\t\\0", '"\t\\\\0"'), 'empty string' => array('', "''"),
'bell' => array("\t\\a", '"\t\\\\a"'), 'null' => array("\x0", '"\\0"'),
'backspace' => array("\t\\b", '"\t\\\\b"'), 'bell' => array("\x7", '"\\a"'),
'horizontal-tab' => array("\t\\t", '"\t\\\\t"'), 'backspace' => array("\x8", '"\\b"'),
'line-feed' => array("\t\\n", '"\t\\\\n"'), 'horizontal-tab' => array("\t", '"\\t"'),
'vertical-tab' => array("\t\\v", '"\t\\\\v"'), 'line-feed' => array("\n", '"\\n"'),
'form-feed' => array("\t\\f", '"\t\\\\f"'), 'vertical-tab' => array("\v", '"\\v"'),
'carriage-return' => array("\t\\r", '"\t\\\\r"'), 'form-feed' => array("\xC", '"\\f"'),
'escape' => array("\t\\e", '"\t\\\\e"'), 'carriage-return' => array("\r", '"\\r"'),
'space' => array("\t\\ ", '"\t\\\\ "'), 'escape' => array("\x1B", '"\\e"'),
'double-quote' => array("\t\\\"", '"\t\\\\\\""'), 'space' => array(' ', "' '"),
'slash' => array("\t\\/", '"\t\\\\/"'), 'double-quote' => array('"', "'\"'"),
'backslash' => array("\t\\\\", '"\t\\\\\\\\"'), 'slash' => array('/', '/'),
'next-line' => array("\t\\N", '"\t\\\\N"'), 'backslash' => array('\\', '\\'),
'non-breaking-space' => array("\t\\<EFBFBD>", '"\t\\\\<5C>"'), 'next-line' => array("\xC2\x85", '"\\N"'),
'line-separator' => array("\t\\L", '"\t\\\\L"'), 'non-breaking-space' => array("\xc2\xa0", '"\\_"'),
'paragraph-separator' => array("\t\\P", '"\t\\\\P"'), 'line-separator' => array("\xE2\x80\xA8", '"\\L"'),
'paragraph-separator' => array("\xE2\x80\xA9", '"\\P"'),
'colon' => array(':', "':'"),
); );
} }