You are here

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

@expectedException \Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php, line 13

Class

AutoAliasServicePassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessWithMissingParameter() {
  $container = new ContainerBuilder();
  $container
    ->register('example')
    ->addTag('auto_alias', array(
    'format' => '%non_existing%.example',
  ));
  $pass = new AutoAliasServicePass();
  $pass
    ->process($container);
}