public function DumperTest::testDumpMultiLineStringAsScalarBlockWhenFirstLineHasLeadingSpace in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 457
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testDumpMultiLineStringAsScalarBlockWhenFirstLineHasLeadingSpace() {
$data = [
'data' => [
'multi_line' => " the first line has leading spaces\nThe second line does not.",
],
];
$this
->assertSame(file_get_contents(__DIR__ . '/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml'), $this->dumper
->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
}