You are here

public function ResolveInvalidReferencesPassTest::testProcessIgnoreNonExistentServices in Zircon Profile 8.0

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

File

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