public function ParserTest::testMultiLineStringLastResortParsing in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 850
Class
Namespace
Symfony\Component\Yaml\TestsCode
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));
}