This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Yaml/Fixtures/YtsBlockMapping.yml

52 lines
919 B
YAML
Raw Normal View History

2011-06-08 18:56:59 +01:00
---
test: One Element Mapping
brief: |
A mapping with one key/value pair
yaml: |
foo: bar
php: |
2010-01-04 14:26:20 +00:00
array('foo' => 'bar')
2011-06-08 18:56:59 +01:00
---
test: Multi Element Mapping
brief: |
More than one key/value pair
yaml: |
red: baron
white: walls
blue: berries
php: |
2010-01-04 14:26:20 +00:00
array(
2011-06-08 18:56:59 +01:00
'red' => 'baron',
'white' => 'walls',
'blue' => 'berries',
2010-01-04 14:26:20 +00:00
)
2011-06-08 18:56:59 +01:00
---
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: |
2010-01-04 14:26:20 +00:00
array(
2011-06-08 18:56:59 +01:00
'red' => 'baron',
'white' => 'walls',
'blue' => 'berries',
2010-01-04 14:26:20 +00:00
)
2011-06-08 18:56:59 +01:00
---
test: Colons aligned
brief: |
Spaces can come before the ': ' key/value separator.
yaml: |
red : baron
white : walls
blue : berries
php: |
2010-01-04 14:26:20 +00:00
array(
2011-06-08 18:56:59 +01:00
'red' => 'baron',
'white' => 'walls',
'blue' => 'berries',
2010-01-04 14:26:20 +00:00
)