You are here

public function ContainerBuilderTest::testMergeLogicException in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testMergeLogicException()

@covers Symfony\Component\DependencyInjection\ContainerBuilder::merge @expectedException \LogicException

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php, line 500

Class

ContainerBuilderTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testMergeLogicException() {
  $container = new ContainerBuilder();
  $container
    ->setResourceTracking(false);
  $container
    ->compile();
  $container
    ->merge(new ContainerBuilder());
}