You are here

public function DumperTest::testDumpMultiLineStringAsScalarBlockWhenFirstLineHasLeadingSpace in Lockr 7.3

File

vendor/symfony/yaml/Tests/DumperTest.php, line 457

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

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));
}