public function PhpDumperTest::testFrozenContainerWithoutAliases in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php \Symfony\Component\DependencyInjection\Tests\Dumper\PhpDumperTest::testFrozenContainerWithoutAliases()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Dumper/ PhpDumperTest.php, line 173
Class
Namespace
Symfony\Component\DependencyInjection\Tests\DumperCode
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'));
}