8000 minor #46989 [DependencyInjection] fix expected autowiring exception … · symfony/symfony@04d3e55 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04d3e55

Browse files
committed
minor #46989 [DependencyInjection] fix expected autowiring exception message (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [DependencyInjection] fix expected autowiring exception message | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | types are sorted since #43479 in 5.4+ Commits ------- 1373257 fix expected autowiring exception message
2 parents 47cb70b + 1373257 commit 04d3e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function testTypeNotGuessableIntersectionType()
295295
$pass = new AutowirePass();
296296

297297
$this->expectException(AutowiringFailedException::class);
298-
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\IntersectionClasses::__construct()" has type "Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface&Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface" but this class was not found.');
298+
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\IntersectionClasses::__construct()" has type "Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface&Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface" but this class was not found.');
299299
$pass->process($container);
300300
}
301301

@@ -315,7 +315,7 @@ public function testTypeNotGuessableCompositeType()
315315
$pass = new AutowirePass();
316316

317317
$this->expectException(AutowiringFailedException::class);
318-
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\CompositeTypeClasses::__construct()" has type "(Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface&Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface)|Symfony\Component\DependencyInjection\Tests\Compiler\YetAnotherInterface" but this class was not found.');
318+
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\CompositeTypeClasses::__construct()" has type "(Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface&Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface)|Symfony\Component\DependencyInjection\Tests\Compiler\YetAnotherInterface" but this class was not found.');
319319
$pass->process($container);
320320
}
321321

0 commit comments

Comments
 (0)
0