8000 minor #33647 [Messenger] fix tests (xabbuh) · symfony/symfony@fb6d591 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb6d591

Browse files
minor #33647 [Messenger] fix tests (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Messenger] fix tests | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- cfd6d64 fix tests
2 parents 13640b9 + cfd6d64 commit fb6d591

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/Messenger/Tests/Command/FailedMessagesRetryCommandTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Tester\CommandTester;
16-
use Symfony\Component\Debug\Exception\FlattenException;
16+
use Symfony\Component\Debug\Exception\FlattenException as LegacyFlattenException;
17+
use Symfony\Component\ErrorRenderer\Exception\FlattenException;
1718
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1819
use Symfony\Component\Messenger\Command\FailedMessagesRetryCommand;
1920
use Symfony\Component\Messenger\Envelope;
@@ -71,7 +72,7 @@ public function testExceptionOnRetry()
7172

7273
return $lastRedeliveryStamp instanceof RedeliveryStamp &&
7374
\is_string($lastRedeliveryStamp->getExceptionMessage()) &&
74-
$lastRedeliveryStamp->getFlattenException() instanceof FlattenException;
75+
($lastRedeliveryStamp->getFlattenException() instanceof FlattenException || $lastRedeliveryStamp->getFlattenException() instanceof LegacyFlattenException);
7576
}))
7677
->willReturn(new Envelope(new \stdClass()));
7778

0 commit comments

Comments
 (0)
0