You are here

public function ParserTest::testCommentCharactersInMultiLineQuotedStrings in Database Sanitize 7

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