test: outside double quotes
yaml: |
\0 \ \a \b \n
php: |
"\\0 \\ \\a \\b \\n"
---
test: null
"\0"
"\x00"
test: bell
"\a"
"\x07"
test: backspace
"\b"
"\x08"
test: horizontal tab (1)
"\t"
"\x09"
test: horizontal tab (2)
"\ "
test: line feed
"\n"
"\x0a"
test: vertical tab
"\v"
"\x0b"
test: form feed
"\f"
"\x0c"
test: carriage return
"\r"
"\x0d"
test: escape
"\e"
"\x1b"
test: space
"\x20"
test: slash
"\/"
"\x2f"
test: backslash
"\\"
test: Unicode next line
"\N"
"\xc2\x85"
test: Unicode non-breaking space
"\_"
"\xc2\xa0"
test: Unicode line separator
"\L"
"\xe2\x80\xa8"
test: Unicode paragraph separator
"\P"
"\xe2\x80\xa9"
test: Escaped 8-bit Unicode
"\x42"
"B"
test: Escaped 16-bit Unicode
"\u20ac"
"\xe2\x82\xac"
test: Escaped 32-bit Unicode
"\U00000043"
"C"
test: Example 5.13 Escaped Characters
note: |
Currently throws an error parsing first line. Maybe Symfony Yaml doesn't support
continuation of string across multiple lines? Keeping test here but disabled.
todo: true
"Fun with \\
\" \a \b \e \f \
\n \r \t \v \0 \
\ \_ \N \L \P \
\x41 \u0041 \U00000041"
"Fun with \x5C\n\x22 \x07 \x08 \x1B \x0C\n\x0A \x0D \x09 \x0B \x00\n\x20 \xA0 \x85 \xe2\x80\xa8 \xe2\x80\xa9\nA A A"
test: Double quotes with a line feed
{ double: "some value\n \"some quoted string\" and 'some single quotes one'" }
array(
'double' => "some value\n \"some quoted string\" and 'some single quotes one'"
)