8000 fix tests · symfony/symfony@cfd6d64 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfd6d64

Browse files
committed
fix tests
1 parent bbf2ae5 commit cfd6d64

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