Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
- YtsNullsAndEmpties | ||
- YtsSpecificationExamples | ||
- YtsTypeTransfers | ||
- unindentedCollections |
62 changes: 62 additions & 0 deletions
62
src/Symfony/Component/Yaml/Tests/Fixtures/unindentedCollections.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- %YAML:1.0 | ||
test: Unindented collection | ||
brief: > | ||
Unindented collection | ||
yaml: | | ||
collection: | ||
- item1 | ||
- item2 | ||
- item3 | ||
php: | | ||
array('collection' => array('item1', 'item2', 'item3')) | ||
--- | ||
test: Nested unindented collection (two levels) | ||
brief: > | ||
Nested unindented collection | ||
yaml: | | ||
collection: | ||
key: | ||
- a | ||
- b | ||
- c | ||
php: | | ||
array('collection' => array('key' => array('a', 'b', 'c'))) | ||
--- | ||
test: Nested unindented collection (three levels) | ||
brief: > | ||
Nested unindented collection | ||
yaml: | | ||
collection: | ||
key: | ||
subkey: | ||
- one | ||
- two | ||
- three | ||
php: | | ||
array('collection' => array('key' => array('subkey' => array('one', 'two', 'three')))) | ||
--- | ||
test: Key/value after unindented collection (1) | ||
brief: > | ||
Key/value after unindented collection (1) | ||
yaml: | | ||
collection: | ||
key: | ||
- a | ||
- b | ||
- c | ||
foo: bar | ||
php: | | ||
array('collection' => array('key' => array('a', 'b', 'c')), 'foo' => 'bar') | ||
--- | ||
test: Key/value after unindented collection (at the same level) | ||
brief: > | ||
Key/value after unindented collection | ||
yaml: | | ||
collection: | ||
key: | ||
- a | ||
- b | ||
- c | ||
foo: bar | ||
php: | | ||
array('collection' => array('key' => array('a', 'b', 'c'), 'foo' => 'bar')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters