You are here

public function CheckDefinitionValidityPassTest::testProcessDetectsSyntheticNonPublicDefinitions in Zircon Profile 8

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

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

File

vendor/symfony/dependency-injection/Tests/Compiler/CheckDefinitionValidityPassTest.php, line 23

Class

CheckDefinitionValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessDetectsSyntheticNonPublicDefinitions() {
  $container = new ContainerBuilder();
  $container
    ->register('a')
    ->setSynthetic(true)
    ->setPublic(false);
  $this
    ->process($container);
}