You are here

public function PhpDumperTest::testLegacySynchronizedServices in Zircon Profile 8

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

@group legacy

File

vendor/symfony/dependency-injection/Tests/Dumper/PhpDumperTest.php, line 130

Class

PhpDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testLegacySynchronizedServices() {
  $container = (include self::$fixturesPath . '/containers/container20.php');
  $dumper = new PhpDumper($container);
  $this
    ->assertEquals(str_replace('%path%', str_replace('\\', '\\\\', self::$fixturesPath . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR), file_get_contents(self::$fixturesPath . '/php/services20.php')), $dumper
    ->dump(), '->dump() dumps services');
}