You are here

public function ReplaceAliasByActualDefinitionPassTest::testProcessWithInvalidAlias 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/ReplaceAliasByActualDefinitionPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ReplaceAliasByActualDefinitionPassTest::testProcessWithInvalidAlias()

@expectedException \InvalidArgumentException

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ReplaceAliasByActualDefinitionPassTest.php, line 47

Class

ReplaceAliasByActualDefinitionPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessWithInvalidAlias() {
  $container = new ContainerBuilder();
  $container
    ->setAlias('a_alias', 'a');
  $this
    ->process($container);
}