Pull merge.
[yaffs-website] / vendor / symfony / yaml / Tests / Fixtures / sfTests.yml
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
62
63         
64       bar
65 php: |
66   array('foo' => array('bar' => "foo\n\n\n  \nbar\n"))
67 ---
68 test: Empty lines in folded blocks
69 brief: >
70   Empty lines in folded blocks
71 yaml: |
72   foo:
73     bar: >
74
75       foo
76
77       
78       bar
79 php: |
80   array('foo' => array('bar' => "\nfoo\n\nbar\n"))
81 ---
82 test: IP addresses
83 brief: >
84   IP addresses
85 yaml: |
86   foo: 10.0.0.2
87 php: |
88   array('foo' => '10.0.0.2')
89 ---
90 test: A sequence with an embedded mapping
91 brief: >
92   A sequence with an embedded mapping
93 yaml: |
94   - foo
95   - bar: { bar: foo }
96 php: |
97   array('foo', array('bar' => array('bar' => 'foo')))
98 ---
99 test: Octal
100 brief: as in spec example 2.19, octal value is converted
101 yaml: |
102   foo: 0123
103 php: |
104   array('foo' => 83)
105 ---
106 test: Octal strings
107 brief: Octal notation in a string must remain a string
108 yaml: |
109   foo: "0123"
110 php: |
111   array('foo' => '0123')
112 ---
113 test: Octal strings
114 brief: Octal notation in a string must remain a string
115 yaml: |
116   foo: '0123'
117 php: |
118   array('foo' => '0123')
119 ---
120 test: Octal strings
121 brief: Octal notation in a string must remain a string
122 yaml: |
123   foo: |
124     0123
125 php: |
126   array('foo' => "0123\n")
127 ---
128 test: Document as a simple hash
129 brief: Document as a simple hash
130 yaml: |
131   { foo: bar }
132 php: |
133   array('foo' => 'bar')
134 ---
135 test: Document as a simple array
136 brief: Document as a simple array
137 yaml: |
138   [ foo, bar ]
139 php: |
140   array('foo', 'bar')