You are here

public function CheckDefinitionValidityPassTest::testProcessDetectsSyntheticPrototypeDefinitions in Service Container 7.2

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

@expectedException \Symfony\Component\DependencyInjection\Exception\RuntimeException

File

modules/providers/service_container_symfony/lib/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);
}