You are here

public function CheckDefinitionValidityPassTest::testProcessDetectsSyntheticPrototypeDefinitions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/Compiler/CheckDefinitionValidityPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\CheckDefinitionValidityPassTest::testProcessDetectsSyntheticPrototypeDefinitions()

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

File

vendor/symfony/dependency-injection/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);
}