We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bd1e5 commit 70cc4e8Copy full SHA for 70cc4e8
src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php
@@ -516,15 +516,15 @@ public function testOptionalArgsNoRequiredForCoreClasses()
516
{
517
$container = new ContainerBuilder();
518
519
- $container->register('pdo_service', \PDO::class)
520
- ->addArgument('sqlite:/foo.db')
+ $container->register('foo', \SplFileObject::class)
+ ->addArgument('foo.txt')
521
->setAutowired(true);
522
523
(new AutowirePass())->process($container);
524
525
- $definition = $container->getDefinition('pdo_service');
+ $definition = $container->getDefinition('foo');
526
$this->assertEquals(
527
- array('sqlite:/foo.db'),
+ array('foo.txt'),
528
$definition->getArguments()
529
);
530
}
0 commit comments