You are here

public function ParserTest::testMultiLineStringLastResortParsing in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testMultiLineStringLastResortParsing() {
  $yaml = <<<'EOT'
test:
  You can have things that don't look like strings here
  true
  yes you can
EOT;
  $expected = [
    'test' => 'You can have things that don\'t look like strings here true yes you can',
  ];
  $this
    ->assertSame($expected, $this->parser
    ->parse($yaml));
  $yaml = <<<'EOT'
a:
    b
       c
EOT;
  $expected = [
    'a' => 'b c',
  ];
  $this
    ->assertSame($expected, $this->parser
    ->parse($yaml));
}