public function ContainerBuilderTest::testCreateSyntheticService

@covers Symfony\Component\DependencyInjection\ContainerBuilder::createService @expectedException \RuntimeException

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php, line 373

Class

ContainerBuilderTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function testCreateSyntheticService() {
  $builder = new ContainerBuilder();
  $builder
    ->register('foo', 'FooClass')
    ->setSynthetic(true);
  $builder
    ->get('foo');
}