public function GraphvizDumperTest::testLegacyDump in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/GraphvizDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\GraphvizDumperTest::testLegacyDump()
@group legacy
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Dumper/ GraphvizDumperTest.php, line 29
Class
Namespace
Symfony\Component\DependencyInjection\Tests\DumperCode
public function testLegacyDump() {
$this
->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
$container = (include self::$fixturesPath . '/containers/legacy-container9.php');
$dumper = new GraphvizDumper($container);
$this
->assertEquals(str_replace('%path%', __DIR__, file_get_contents(self::$fixturesPath . '/graphviz/legacy-services9.dot')), $dumper
->dump(), '->dump() dumps services');
}