public function ContainerTest::testSetDoesNotAllowInactiveScope

@expectedException \RuntimeException

File

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

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testSetDoesNotAllowInactiveScope() {
  $c = new Container();
  $c
    ->addScope(new Scope('foo'));
  $c
    ->set('foo', new \stdClass(), 'foo');
}