You are here

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

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

File

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

Class

CheckDefinitionValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testLegacyProcessDetectsBothFactorySyntaxesUsed() {
  $container = new ContainerBuilder();
  $container
    ->register('a')
    ->setFactory(array(
    'a',
    'b',
  ))
    ->setFactoryClass('a');
  $this
    ->process($container);
}