public function ResolveInvalidReferencesPassTest::testProcessIgnoreNonExistentServices

File

drupal/core/vendor/symfony/dependency-injection/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]);
}