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.
1 parent b8f8106 commit aae2542Copy full SHA for aae2542
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;
@@ -114,7 +115,8 @@ public function dispatch(Event $event): void
114
115
*/
116
public function handleThrowable(Throwable $t): void
117
{
- if ($this->isThrowableFromThirdPartySubscriber($t)) {
118
+ if (!defined('PHPUNIT_TESTSUITE') &&
119
+ $this->isThrowableFromThirdPartySubscriber($t)) {
120
Facade::emitter()->testRunnerTriggeredWarning(
121
sprintf(
122
'Exception in third-party event subscriber: %s%s%s',
0 commit comments