Skip to content

Commit 64b2df9

Browse files
Merge branch '11.5' into 12.3
2 parents 0d385ce + b3be029 commit 64b2df9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Event/Emitter/DispatchingEmitter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,13 @@ public function testRunnerFinishedStaticAnalysisForCodeCoverage(int $cacheHits,
13331333
*/
13341334
public function testRunnerTriggeredPhpunitDeprecation(string $message): void
13351335
{
1336+
try {
1337+
if (TestMethodBuilder::fromCallStack()->metadata()->isIgnorePhpunitDeprecations()->isNotEmpty()) {
1338+
return;
1339+
}
1340+
} catch (NoTestCaseObjectOnCallStackException) {
1341+
}
1342+
13361343
$this->dispatcher->dispatch(
13371344
new TestRunner\DeprecationTriggered(
13381345
$this->telemetryInfo(),

0 commit comments

Comments
 (0)