You are here

public function AutoAliasServicePassTest::testProcessWithMissingFormat in Zircon Profile 8

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

@expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException

File

vendor/symfony/dependency-injection/Tests/Compiler/AutoAliasServicePassTest.php, line 36

Class

AutoAliasServicePassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessWithMissingFormat() {
  $container = new ContainerBuilder();
  $container
    ->register('example')
    ->addTag('auto_alias', array());
  $container
    ->setParameter('existing', 'mysql');
  $pass = new AutoAliasServicePass();
  $pass
    ->process($container);
}