You are here

public function ParserTest::testSequenceFollowedByCommentEmbeddedInMapping in Loft Data Grids 7.2

File

vendor/symfony/yaml/Tests/ParserTest.php, line 677

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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));
}