public function ParserTest::testNonStringFollowedByCommentEmbeddedInMapping in Database Sanitize 7
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 = array(
'a' => array(
'b' => array(),
'd' => 1.1,
),
);
$this
->assertSame($expected, $this->parser
->parse($yaml));
}