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.
2 parents 8fe3bf3 + 9923859 commit 963b54cCopy full SHA for 963b54c
src/Event/Dispatcher/DirectDispatcher.php
@@ -11,6 +11,7 @@
11
12
use const PHP_EOL;
13
use function array_key_exists;
14
+use function defined;
15
use function dirname;
16
use function sprintf;
17
use function str_starts_with;
@@ -115,7 +116,8 @@ public function dispatch(Event $event): void
115
116
*/
117
public function handleThrowable(Throwable $t): void
118
{
- if ($this->isThrowableFromThirdPartySubscriber($t)) {
119
+ if (!defined('PHPUNIT_TESTSUITE') &&
120
+ $this->isThrowableFromThirdPartySubscriber($t)) {
121
Facade::emitter()->testRunnerTriggeredWarning(
122
sprintf(
123
'Exception in third-party event subscriber: %s%s%s',
0 commit comments