Yaffs site version 1.1
[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: A sequence with an unordered array
100 brief: >
101   A sequence with an unordered array
102 yaml: |
103   1: foo
104   0: bar
105 php: |
106   array(1 => 'foo', 0 => 'bar')
107 ---
108 test: Octal
109 brief: as in spec example 2.19, octal value is converted
110 yaml: |
111   foo: 0123
112 php: |
113   array('foo' => 83)
114 ---
115 test: Octal strings
116 brief: Octal notation in a string must remain a string
117 yaml: |
118   foo: "0123"
119 php: |
120   array('foo' => '0123')
121 ---
122 test: Octal strings
123 brief: Octal notation in a string must remain a string
124 yaml: |
125   foo: '0123'
126 php: |
127   array('foo' => '0123')
128 ---
129 test: Octal strings
130 brief: Octal notation in a string must remain a string
131 yaml: |
132   foo: |
133     0123
134 php: |
135   array('foo' => "0123\n")
136 ---
137 test: Document as a simple hash
138 brief: Document as a simple hash
139 yaml: |
140   { foo: bar }
141 php: |
142   array('foo' => 'bar')
143 ---
144 test: Document as a simple array
145 brief: Document as a simple array
146 yaml: |
147   [ foo, bar ]
148 php: |
149   array('foo', 'bar')