You are here

sfTests.yml in Loft Data Grids 7.2

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

File

vendor/symfony/yaml/Tests/Fixtures/sfTests.yml
View source
  1. --- %YAML:1.0
  2. test: Multiple quoted string on one line
  3. brief: >
  4. Multiple quoted string on one line
  5. yaml: |
  6. stripped_title: { name: "foo bar", help: "bar foo" }
  7. php: |
  8. array('stripped_title' => array('name' => 'foo bar', 'help' => 'bar foo'))
  9. ---
  10. test: Empty sequence
  11. yaml: |
  12. foo: [ ]
  13. php: |
  14. array('foo' => array())
  15. ---
  16. test: Empty value
  17. yaml: |
  18. foo:
  19. php: |
  20. array('foo' => null)
  21. ---
  22. test: Inline string parsing
  23. brief: >
  24. Inline string parsing
  25. yaml: |
  26. test: ['complex: string', 'another [string]']
  27. php: |
  28. array('test' => array('complex: string', 'another [string]'))
  29. ---
  30. test: Boolean
  31. brief: >
  32. Boolean
  33. yaml: |
  34. - false
  35. - true
  36. - null
  37. - ~
  38. - 'false'
  39. - 'true'
  40. - 'null'
  41. - '~'
  42. php: |
  43. array(
  44. false,
  45. true,
  46. null,
  47. null,
  48. 'false',
  49. 'true',
  50. 'null',
  51. '~',
  52. )
  53. ---
  54. test: Empty lines in literal blocks
  55. brief: >
  56. Empty lines in literal blocks
  57. yaml: |
  58. foo:
  59. bar: |
  60. foo
  61. bar
  62. php: |
  63. array('foo' => array('bar' => "foo\n\n\n \nbar\n"))
  64. ---
  65. test: Empty lines in folded blocks
  66. brief: >
  67. Empty lines in folded blocks
  68. yaml: |
  69. foo:
  70. bar: >
  71. foo
  72. bar
  73. php: |
  74. array('foo' => array('bar' => "\nfoo\n\nbar\n"))
  75. ---
  76. test: IP addresses
  77. brief: >
  78. IP addresses
  79. yaml: |
  80. foo: 10.0.0.2
  81. php: |
  82. array('foo' => '10.0.0.2')
  83. ---
  84. test: A sequence with an embedded mapping
  85. brief: >
  86. A sequence with an embedded mapping
  87. yaml: |
  88. - foo
  89. - bar: { bar: foo }
  90. php: |
  91. array('foo', array('bar' => array('bar' => 'foo')))
  92. ---
  93. test: A sequence with an unordered array
  94. brief: >
  95. A sequence with an unordered array
  96. yaml: |
  97. 1: foo
  98. 0: bar
  99. php: |
  100. array(1 => 'foo', 0 => 'bar')
  101. ---
  102. test: Octal
  103. brief: as in spec example 2.19, octal value is converted
  104. yaml: |
  105. foo: 0123
  106. php: |
  107. array('foo' => 83)
  108. ---
  109. test: Octal strings
  110. brief: Octal notation in a string must remain a string
  111. yaml: |
  112. foo: "0123"
  113. php: |
  114. array('foo' => '0123')
  115. ---
  116. test: Octal strings
  117. brief: Octal notation in a string must remain a string
  118. yaml: |
  119. foo: '0123'
  120. php: |
  121. array('foo' => '0123')
  122. ---
  123. test: Octal strings
  124. brief: Octal notation in a string must remain a string
  125. yaml: |
  126. foo: |
  127. 0123
  128. php: |
  129. array('foo' => "0123\n")
  130. ---
  131. test: Document as a simple hash
  132. brief: Document as a simple hash
  133. yaml: |
  134. { foo: bar }
  135. php: |
  136. array('foo' => 'bar')
  137. ---
  138. test: Document as a simple array
  139. brief: Document as a simple array
  140. yaml: |
  141. [ foo, bar ]
  142. php: |
  143. array('foo', 'bar')