You are here

public function ContainerBuilderTest::testCreateSyntheticService in Zircon Profile 8

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

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

File

vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php, line 420

Class

ContainerBuilderTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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