You are here

public function YamlDumperTest::testDump in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/Dumper/YamlDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\YamlDumperTest::testDump()

File

vendor/symfony/dependency-injection/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);
}