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