You are here

public function DumperTest::testSetIndentation in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/DumperTest.php \Symfony\Component\Yaml\Tests\DumperTest::testSetIndentation()

File

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/DumperTest.php, line 53

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

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