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 2be2876 + edcef65 commit 99430caCopy full SHA for 99430ca
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;
@@ -116,8 +115,7 @@ public function dispatch(Event $event): void
116
115
*/
117
public function handleThrowable(Throwable $t): void
118
{
119
- if (!defined('PHPUNIT_TESTSUITE') &&
120
- $this->isThrowableFromThirdPartySubscriber($t)) {
+ if ($this->isThrowableFromThirdPartySubscriber($t)) {
121
Facade::emitter()->testRunnerTriggeredPhpunitWarning(
122
sprintf(
123
'Exception in third-party event subscriber: %s%s%s',
0 commit comments