You are here

public function YamlDumperTest::testDump in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\YamlDumperTest::testDump()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php, line 26

Class

YamlDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testDump() {
  $dumper = new YamlDumper($container = new ContainerBuilder());
  $this
    ->assertStringEqualsFile(self::$fixturesPath . '/yaml/services1.yml', $dumper
    ->dump(), '->dump() dumps an empty container as an empty YAML file');
  $container = new ContainerBuilder();
  $dumper = new YamlDumper($container);
}