public function ParserTest::testSequenceFollowedByCommentEmbeddedInMapping in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 775
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testSequenceFollowedByCommentEmbeddedInMapping() {
$yaml = <<<'EOT'
a:
b:
- c
# comment
d: e
EOT;
$expected = [
'a' => [
'b' => [
'c',
],
'd' => 'e',
],
];
$this
->assertSame($expected, $this->parser
->parse($yaml));
}