You are here

public function ParserTest::testCommentCharactersInMultiLineQuotedStrings in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testCommentCharactersInMultiLineQuotedStrings() {
  $yaml = <<<YAML
foo:
    foobar: 'foo
      #bar'
    bar: baz
YAML;
  $expected = [
    'foo' => [
      'foobar' => 'foo #bar',
      'bar' => 'baz',
    ],
  ];
  $this
    ->assertSame($expected, $this->parser
    ->parse($yaml));
}