public function ParserTest::testMultiLineStringLastResortParsing in Database Sanitize 7
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 = array(
'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 = array(
'a' => 'b c',
);
$this
->assertSame($expected, $this->parser
->parse($yaml));
}