public function YamlDumperTest::testDump in Service Container 7
Same name and namespace in other branches
- 7.2 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
Namespace
Symfony\Component\DependencyInjection\Tests\DumperCode
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);
}