Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpott committed Jan 6, 2025
1 parent 3b776c2 commit 1e092fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Symfony/Component/Yaml/Tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,19 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
<<<YAML
map: {key: "value", a: "b"}
param: "some"
YAML
],
'mixed mapping with inline notation on one line with a comment' => [
[
'map' => [
'key' => 'value',
'a' => 'b',
],
'param' => 'some',
],
<<<YAML
map: {key: "value", a: "b"} # comment
param: "some"
YAML
],
'mixed mapping with compact inline notation on one line' => [
Expand Down

0 comments on commit 1e092fc

Please sign in to comment.