##\
# YAML handler fixtures for testing the ability to reconstruct YAML data.
#
# This file is a part of the "common classes package", utilised by a number of
# packages and projects, including CIDRAM and phpMussel.
# Source: https://github.com/Maikuolan/Common
##/
String foo: "Bar"
Integer foo: 1234
Float foo: 123.4
Example implicit numeric array:
- "Bar0"
- "Bar1"
- "Bar2"
- "Bar3"
Example associative array:
Foo1: "Bar1"
Foo2: "Bar2"
Foo3: "Bar3"
Foo4: "Bar4"
Example null set:
? "Bar0"
? "Bar1"
? "Bar2"
? "Bar3"
Example mixed multi-dimensional array:
0: "Bar0"
1: "Bar1"
xFooX: "xBarX"
Some int: 4567
Sub array:
Hello: "World"
Sub-sub array:
Foobar: "Barfoo"
Multi-line example: |
h e l l o - w o r l d
hello-world
Example booleans and null:
This is true: true
This is false: false
This is null: null
Testing anchors:
Anchored text push: &TestAnchor "Some placeholder text."
Anchored text pull: *TestAnchor
Escaping test: "Our number is \#123-456-789."
Other kinds of floats:
Infinity: .inf
Negative infinity: -.inf
Not a number: .nan
Folded chomping keep test: |+
This is a test.
Hello world.
Folded chomping clip test: |
This is a test.
Hello world.
A sequence with a folded scalar:
- >
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.4 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.4
facebookexternalhit/1.1 Facebot Twitterbot/1.0
Support for entities(
Hello World: "Hello World"
I am a number: 123
Does it work: "It works"
Recursive entity(
Can it recurse: "Yes it can!"
)
)
Compact Nested Mapping:
- Hello: "World"
Goodbye: "Planet Earth"
- Compact nested mapping example 1: "Compact nested mapping example 1"
Compact nested mapping example 2: "Compact nested mapping example 2"
End of file: ":-)"
|