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