You are here

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php, line 139

Class

PhpDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testServicesWithAnonymousFactories() {
  $container = (include self::$fixturesPath . '/containers/container19.php');
  $dumper = new PhpDumper($container);
  $this
    ->assertStringEqualsFile(self::$fixturesPath . '/php/services19.php', $dumper
    ->dump(), '->dump() dumps services with anonymous factories');
}