aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fabpot-yaml/test/fixtures/sfQuotes.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fabpot-yaml/test/fixtures/sfQuotes.yml')
-rw-r--r--lib/fabpot-yaml/test/fixtures/sfQuotes.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/fabpot-yaml/test/fixtures/sfQuotes.yml b/lib/fabpot-yaml/test/fixtures/sfQuotes.yml
new file mode 100644
index 0000000..741f1be
--- /dev/null
+++ b/lib/fabpot-yaml/test/fixtures/sfQuotes.yml
@@ -0,0 +1,33 @@
+--- %YAML:1.0
+test: Some characters at the beginning of a string must be escaped
+brief: >
+ Some characters at the beginning of a string must be escaped
+yaml: |
+ foo: | bar
+php: |
+ array('foo' => '| bar')
+---
+test: A key can be a quoted string
+brief: >
+ A key can be a quoted string
+yaml: |
+ "foo1": bar
+ 'foo2': bar
+ "foo \" bar": bar
+ 'foo '' bar': bar
+ 'foo3: ': bar
+ "foo4: ": bar
+ foo5: { "foo \" bar: ": bar, 'foo '' bar: ': bar }
+php: |
+ array(
+ 'foo1' => 'bar',
+ 'foo2' => 'bar',
+ 'foo " bar' => 'bar',
+ 'foo \' bar' => 'bar',
+ 'foo3: ' => 'bar',
+ 'foo4: ' => 'bar',
+ 'foo5' => array(
+ 'foo " bar: ' => 'bar',
+ 'foo \' bar: ' => 'bar',
+ ),
+ )