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