public function ContainerTest::testAddScopeDoesNotAllowExistingScope

@expectedException \InvalidArgumentException

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 299

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testAddScopeDoesNotAllowExistingScope() {
  $container = new Container();
  $container
    ->addScope(new Scope('foo'));
  $container
    ->addScope(new Scope('foo'));
}