You are here

public function ParserTest::testNonStringFollowedByCommentEmbeddedInMapping in Database Sanitize 7

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 = array(
    'a' => array(
      'b' => array(),
      'd' => 1.1,
    ),
  );
  $this
    ->assertSame($expected, $this->parser
    ->parse($yaml));
}