You are here

public function ParserTest::testColonInMappingValueExceptionNotTriggeredByColonInComment in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testColonInMappingValueExceptionNotTriggeredByColonInComment() {
  $yaml = <<<'EOT'
foo:
    bar: foobar # Note: a comment after a colon
EOT;
  $this
    ->assertSame([
    'foo' => [
      'bar' => 'foobar',
    ],
  ], $this->parser
    ->parse($yaml));
}