public function DumperTest::testIndentationInConstructor in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 55
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testIndentationInConstructor() {
$dumper = new Dumper(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, $dumper
->dump($this->array, 4, 0));
}