public function ContainerTest::testAddScopeDoesNotAllowInvalidParentScope

@expectedException \InvalidArgumentException @dataProvider getInvalidParentScopes

File

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

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testAddScopeDoesNotAllowInvalidParentScope($scope) {
  $c = new Container();
  $c
    ->addScope(new Scope('foo', $scope));
}