You are here

public function CheckDefinitionValidityPassTest::testProcessDetectsNonSyntheticNonAbstractDefinitionWithoutClass in Service Container 7

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

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

File

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