You are here

public function XmlDumperTest::testCompiledContainerCanBeDumped 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/XmlDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\XmlDumperTest::testCompiledContainerCanBeDumped()

@dataProvider provideCompiledContainerData

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php, line 159

Class

XmlDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testCompiledContainerCanBeDumped($containerFile) {
  $fixturesPath = __DIR__ . '/../Fixtures';
  $container = (require $fixturesPath . '/containers/' . $containerFile . '.php');
  $container
    ->compile();
  $dumper = new XmlDumper($container);
  $dumper
    ->dump();
}