aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml')
-rw-r--r--lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml b/lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml
new file mode 100644
index 0000000..3a2d410
--- /dev/null
+++ b/lib/fabpot-yaml/test/fixtures/YtsBlockMapping.yml
@@ -0,0 +1,52 @@
+---
+test: One Element Mapping
+brief: |
+ A mapping with one key/value pair
+yaml: |
+ foo: bar
+php: |
+ array('foo' => 'bar')
+---
+test: Multi Element Mapping
+brief: |
+ More than one key/value pair
+yaml: |
+ red: baron
+ white: walls
+ blue: berries
+php: |
+ array(
+ 'red' => 'baron',
+ 'white' => 'walls',
+ 'blue' => 'berries',
+ )
+---
+test: Values aligned
+brief: |
+ Often times human editors of documents will align the values even
+ though YAML emitters generally don't.
+yaml: |
+ red: baron
+ white: walls
+ blue: berries
+php: |
+ array(
+ 'red' => 'baron',
+ 'white' => 'walls',
+ 'blue' => 'berries',
+ )
+---
+test: Colons aligned
+brief: |
+ Spaces can come before the ': ' key/value separator.
+yaml: |
+ red : baron
+ white : walls
+ blue : berries
+php: |
+ array(
+ 'red' => 'baron',
+ 'white' => 'walls',
+ 'blue' => 'berries',
+ )
+ \ No newline at end of file