File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Symfony/Component/Messenger/Tests/Command Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
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 ;
17
18
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
18
19
use Symfony \Component \Messenger \Command \FailedMessagesRetryCommand ;
19
20
use Symfony \Component \Messenger \Envelope ;
@@ -71,7 +72,7 @@ public function testExceptionOnRetry()
71
72
72
73
return $ lastRedeliveryStamp instanceof RedeliveryStamp &&
73
74
\is_string ($ lastRedeliveryStamp ->getExceptionMessage ()) &&
74
- $ lastRedeliveryStamp ->getFlattenException () instanceof FlattenException;
75
+ ( $ lastRedeliveryStamp ->getFlattenException () instanceof FlattenException || $ lastRedeliveryStamp -> getFlattenException () instanceof LegacyFlattenException) ;
75
76
}))
76
77
->willReturn (new Envelope (new \stdClass ()));
77
78
You can’t perform that action at this time.
0 commit comments