You are here

public function ParserTest::testColonInMappingValueExceptionNotTriggeredByColonInComment in Loft Data Grids 7.2

File

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

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(array(
    'foo' => array(
      'bar' => 'foobar',
    ),
  ), $this->parser
    ->parse($yaml));
}