You are here

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php, line 37

Class

ResolveInvalidReferencesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessIgnoreNonExistentServices() {
  $container = new ContainerBuilder();
  $def = $container
    ->register('foo')
    ->setArguments(array(
    new Reference('bar'),
  ));
  $this
    ->process($container);
  $arguments = $def
    ->getArguments();
  $this
    ->assertEquals('bar', (string) $arguments[0]);
}