You are here

public function ParserTest::testNonStringFollowedByCommentEmbeddedInMapping in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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