public function CheckDefinitionValidityPassTest::testProcessDetectsSyntheticPrototypeDefinitions

@expectedException \RuntimeException

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckDefinitionValidityPassTest.php, line 34

Class

CheckDefinitionValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessDetectsSyntheticPrototypeDefinitions() {
  $container = new ContainerBuilder();
  $container
    ->register('a')
    ->setSynthetic(true)
    ->setScope(ContainerInterface::SCOPE_PROTOTYPE);
  $this
    ->process($container);
}