You are here

public function PhpDumperTest::testFrozenContainerWithoutAliases in Zircon Profile 8.0

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

File

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

Class

PhpDumperTest

Namespace

Symfony\Component\DependencyInjection\Tests\Dumper

Code

public function testFrozenContainerWithoutAliases() {
  $container = new ContainerBuilder();
  $container
    ->compile();
  $dumper = new PhpDumper($container);
  eval('?>' . $dumper
    ->dump(array(
    'class' => 'Symfony_DI_PhpDumper_Test_Frozen_No_Aliases',
  )));
  $container = new \Symfony_DI_PhpDumper_Test_Frozen_No_Aliases();
  $this
    ->assertFalse($container
    ->has('foo'));
}