You are here

public function CheckDefinitionValidityPassTest::testProcessDetectsNonSyntheticNonAbstractDefinitionWithoutClass 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::testProcessDetectsNonSyntheticNonAbstractDefinitionWithoutClass()

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

File

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

Class

CheckDefinitionValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

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