You are here

public function ParserTest::testSequenceFollowedByCommentEmbeddedInMapping in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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