public function DumperTest::testSetIndentation in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php \Symfony\Component\Yaml\Tests\DumperTest::testSetIndentation()
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 54
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testSetIndentation() {
$this->dumper
->setIndentation(7);
$expected = <<<'EOF'
'': bar
foo: '#bar'
'foo''bar': { }
bar:
- 1
- foo
foobar:
foo: bar
bar:
- 1
- foo
foobar:
foo: bar
bar:
- 1
- foo
EOF;
$this
->assertEquals($expected, $this->dumper
->dump($this->array, 4, 0));
}