Skip to content

Commit 340d60a

Browse files
Merge branch '2.8' into 3.2
* 2.8: [Yaml] Fix the tests [github] Add a reminder about CHANGELOG.md files
2 parents 24e1be1 + 841f675 commit 340d60a

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

Tests/DumperTest.php

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -258,23 +258,25 @@ public function testEscapedEscapeSequencesInQuotedScalar($input, $expected)
258258
public function getEscapeSequences()
259259
{
260260
return array(
261-
'null' => array("\t\\0", '"\t\\\\0"'),
262-
'bell' => array("\t\\a", '"\t\\\\a"'),
263-
'backspace' => array("\t\\b", '"\t\\\\b"'),
264-
'horizontal-tab' => array("\t\\t", '"\t\\\\t"'),
265-
'line-feed' => array("\t\\n", '"\t\\\\n"'),
266-
'vertical-tab' => array("\t\\v", '"\t\\\\v"'),
267-
'form-feed' => array("\t\\f", '"\t\\\\f"'),
268-
'carriage-return' => array("\t\\r", '"\t\\\\r"'),
269-
'escape' => array("\t\\e", '"\t\\\\e"'),
270-
'space' => array("\t\\ ", '"\t\\\\ "'),
271-
'double-quote' => array("\t\\\"", '"\t\\\\\\""'),
272-
'slash' => array("\t\\/", '"\t\\\\/"'),
273-
'backslash' => array("\t\\\\", '"\t\\\\\\\\"'),
274-
'next-line' => array("\t\\N", '"\t\\\\N"'),
275-
'non-breaking-space' => array("\t\\", '"\t\\\\�"'),
276-
'line-separator' => array("\t\\L", '"\t\\\\L"'),
277-
'paragraph-separator' => array("\t\\P", '"\t\\\\P"'),
261+
'empty string' => array('', "''"),
262+
'null' => array("\x0", '"\\0"'),
263+
'bell' => array("\x7", '"\\a"'),
264+
'backspace' => array("\x8", '"\\b"'),
265+
'horizontal-tab' => array("\t", '"\\t"'),
266+
'line-feed' => array("\n", '"\\n"'),
267+
'vertical-tab' => array("\v", '"\\v"'),
268+
'form-feed' => array("\xC", '"\\f"'),
269+
'carriage-return' => array("\r", '"\\r"'),
270+
'escape' => array("\x1B", '"\\e"'),
271+
'space' => array(' ', "' '"),
272+
'double-quote' => array('"', "'\"'"),
273+
'slash' => array('/', '/'),
274+
'backslash' => array('\\', '\\'),
275+
'next-line' => array("\xC2\x85", '"\\N"'),
276+
'non-breaking-space' => array("\xc2\xa0", '"\\_"'),
277+
'line-separator' => array("\xE2\x80\xA8", '"\\L"'),
278+
'paragraph-separator' => array("\xE2\x80\xA9", '"\\P"'),
279+
'colon' => array(':', "':'"),
278280
);
279281
}
280282

0 commit comments

Comments
 (0)