Skip to content

Commit e1f5aff

Browse files
Merge branch '3.2'
* 3.2: [Cache] Fix Redis pipelining/multi-ops [Yaml] Fix the tests [github] Add a reminder about CHANGELOG.md files respect the umask argument in dumpFile() dumpFile(), preserve existing file permissions [Form] Fixed overridden choices option in extended choice types Add validate method to mockec validator in form TypeTestCase bumped Symfony version to 2.8.19 updated VERSION for 2.8.18 updated CHANGELOG for 2.8.18 bumped Symfony version to 2.7.26 updated VERSION for 2.7.25 update CONTRIBUTORS for 2.7.25 updated CHANGELOG for 2.7.25 [HttpKernel] fixed Kernel name when stored in a directory starting with a number context listener: hardening user provider handling [Console] Do not squash input changes made from console.command event
2 parents 8a93b80 + 340d60a commit e1f5aff

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
@@ -276,23 +276,25 @@ public function testEscapedEscapeSequencesInQuotedScalar($input, $expected)
276276
public function getEscapeSequences()
277277
{
278278
return array(
279-
'null' => array("\t\\0", '"\t\\\\0"'),
280-
'bell' => array("\t\\a", '"\t\\\\a"'),
281-
'backspace' => array("\t\\b", '"\t\\\\b"'),
282-
'horizontal-tab' => array("\t\\t", '"\t\\\\t"'),
283-
'line-feed' => array("\t\\n", '"\t\\\\n"'),
284-
'vertical-tab' => array("\t\\v", '"\t\\\\v"'),
285-
'form-feed' => array("\t\\f", '"\t\\\\f"'),
286-
'carriage-return' => array("\t\\r", '"\t\\\\r"'),
287-
'escape' => array("\t\\e", '"\t\\\\e"'),
288-
'space' => array("\t\\ ", '"\t\\\\ "'),
289-
'double-quote' => array("\t\\\"", '"\t\\\\\\""'),
290-
'slash' => array("\t\\/", '"\t\\\\/"'),
291-
'backslash' => array("\t\\\\", '"\t\\\\\\\\"'),
292-
'next-line' => array("\t\\N", '"\t\\\\N"'),
293-
'non-breaking-space' => array("\t\\", '"\t\\\\�"'),
294-
'line-separator' => array("\t\\L", '"\t\\\\L"'),
295-
'paragraph-separator' => array("\t\\P", '"\t\\\\P"'),
279+
'empty string' => array('', "''"),
280+
'null' => array("\x0", '"\\0"'),
281+
'bell' => array("\x7", '"\\a"'),
282+
'backspace' => array("\x8", '"\\b"'),
283+
'horizontal-tab' => array("\t", '"\\t"'),
284+
'line-feed' => array("\n", '"\\n"'),
285+
'vertical-tab' => array("\v", '"\\v"'),
286+
'form-feed' => array("\xC", '"\\f"'),
287+
'carriage-return' => array("\r", '"\\r"'),
288+
'escape' => array("\x1B", '"\\e"'),
289+
'space' => array(' ', "' '"),
290+
'double-quote' => array('"', "'\"'"),
291+
'slash' => array('/', '/'),
292+
'backslash' => array('\\', '\\'),
293+
'next-line' => array("\xC2\x85", '"\\N"'),
294+
'non-breaking-space' => array("\xc2\xa0", '"\\_"'),
295+
'line-separator' => array("\xE2\x80\xA8", '"\\L"'),
296+
'paragraph-separator' => array("\xE2\x80\xA9", '"\\P"'),
297+
'colon' => array(':', "':'"),
296298
);
297299
}
298300

0 commit comments

Comments
 (0)