You are here

escapedCharacters.yml in Lockr 7.3

vendor/symfony/yaml/Tests/Fixtures/escapedCharacters.yml

File

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