source: spip-zone/_plugins_/yaml/trunk/vendor/symfony/yaml/Tests/Fixtures/YtsBlockMapping.yml @ 110467

Last change on this file since 110467 was 110467, checked in by eric@…, 16 months ago

Premiers tests de mise à jour.

  • Property svn:eol-style set to native
File size: 919 bytes
Line 
1---
2test: One Element Mapping
3brief: |
4    A mapping with one key/value pair
5yaml: |
6    foo: bar
7php: |
8    array('foo' => 'bar')
9---
10test: Multi Element Mapping
11brief: |
12    More than one key/value pair
13yaml: |
14    red: baron
15    white: walls
16    blue: berries
17php: |
18    array(
19     'red' => 'baron',
20     'white' => 'walls',
21     'blue' => 'berries',
22    )
23---
24test: Values aligned
25brief: |
26    Often times human editors of documents will align the values even
27    though YAML emitters generally don't.
28yaml: |
29    red:   baron
30    white: walls
31    blue:  berries
32php: |
33    array(
34     'red' => 'baron',
35     'white' => 'walls',
36     'blue' => 'berries',
37    )
38---
39test: Colons aligned
40brief: |
41    Spaces can come before the ': ' key/value separator.
42yaml: |
43    red   : baron
44    white : walls
45    blue  : berries
46php: |
47    array(
48     'red' => 'baron',
49     'white' => 'walls',
50     'blue' => 'berries',
51    )
Note: See TracBrowser for help on using the repository browser.