1test: outside double quotes 2yaml: | 3 \0 \ \a \b \n 4php: | 5 "\\0 \\ \\a \\b \\n" 6--- 7test: 'null' 8yaml: | 9 "\0" 10php: | 11 "\x00" 12--- 13test: bell 14yaml: | 15 "\a" 16php: | 17 "\x07" 18--- 19test: backspace 20yaml: | 21 "\b" 22php: | 23 "\x08" 24--- 25test: horizontal tab (1) 26yaml: | 27 "\t" 28php: | 29 "\x09" 30--- 31test: horizontal tab (2) 32yaml: | 33 "\ " 34php: | 35 "\x09" 36--- 37test: line feed 38yaml: | 39 "\n" 40php: | 41 "\x0a" 42--- 43test: vertical tab 44yaml: | 45 "\v" 46php: | 47 "\x0b" 48--- 49test: form feed 50yaml: | 51 "\f" 52php: | 53 "\x0c" 54--- 55test: carriage return 56yaml: | 57 "\r" 58php: | 59 "\x0d" 60--- 61test: escape 62yaml: | 63 "\e" 64php: | 65 "\x1b" 66--- 67test: space 68yaml: | 69 "\ " 70php: | 71 "\x20" 72--- 73test: slash 74yaml: | 75 "\/" 76php: | 77 "\x2f" 78--- 79test: backslash 80yaml: | 81 "\\" 82php: | 83 "\\" 84--- 85test: Unicode next line 86yaml: | 87 "\N" 88php: | 89 "\xc2\x85" 90--- 91test: Unicode non-breaking space 92yaml: | 93 "\_" 94php: | 95 "\xc2\xa0" 96--- 97test: Unicode line separator 98yaml: | 99 "\L" 100php: | 101 "\xe2\x80\xa8" 102--- 103test: Unicode paragraph separator 104yaml: | 105 "\P" 106php: | 107 "\xe2\x80\xa9" 108--- 109test: Escaped 8-bit Unicode 110yaml: | 111 "\x42" 112php: | 113 "B" 114--- 115test: Escaped 16-bit Unicode 116yaml: | 117 "\u20ac" 118php: | 119 "\xe2\x82\xac" 120--- 121test: Escaped 32-bit Unicode 122yaml: | 123 "\U00000043" 124php: | 125 "C" 126--- 127test: Example 5.13 Escaped Characters 128note: | 129 Currently throws an error parsing first line. Maybe Symfony Yaml doesn't support 130 continuation of string across multiple lines? Keeping test here but disabled. 131todo: true 132yaml: | 133 "Fun with \\ 134 \" \a \b \e \f \ 135 \n \r \t \v \0 \ 136 \ \_ \N \L \P \ 137 \x41 \u0041 \U00000041" 138php: | 139 "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" 140--- 141test: Double quotes with a line feed 142yaml: | 143 { double: "some value\n \"some quoted string\" and 'some single quotes one'" } 144php: | 145 [ 146 'double' => "some value\n \"some quoted string\" and 'some single quotes one'" 147 ] 148--- 149test: Backslashes 150yaml: | 151 { single: 'foo\Var', no-quotes: foo\Var, double: "foo\\Var" } 152php: | 153 [ 154 'single' => 'foo\Var', 'no-quotes' => 'foo\Var', 'double' => 'foo\Var' 155 ] 156