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 0077cb2 commit edcef65Copy full SHA for edcef65
src/Event/Dispatcher/DirectDispatcher.php
@@ -11,7 +11,6 @@
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,8 +114,7 @@ public function dispatch(Event $event): void
115
114
*/
116
public function handleThrowable(Throwable $t): void
117
{
118
- if (!defined('PHPUNIT_TESTSUITE') &&
119
- $this->isThrowableFromThirdPartySubscriber($t)) {
+ if ($this->isThrowableFromThirdPartySubscriber($t)) {
120
Facade::emitter()->testRunnerTriggeredPhpunitWarning(
121
sprintf(
122
'Exception in third-party event subscriber: %s%s%s',
0 commit comments