Skip to content

Commit 676fcfa

Browse files
committed
[PhpUnitBridge] Use 'total' for asserting deprecation count when a group is not defined
1 parent 3363287 commit 676fcfa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add `ExpectUserDeprecationMessageTrait` with a polyfill of PHPUnit's `expectUserDeprecationMessage()`
8+
* Use `total` for asserting deprecation count when a group is not defined
89

910
6.4
1011
---

Diff for: DeprecationErrorHandler/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private function __construct(array $thresholds = [], string $regex = '', array $
9696
}
9797
foreach ($groups as $group) {
9898
if (!isset($this->thresholds[$group])) {
99-
$this->thresholds[$group] = 999999;
99+
$this->thresholds[$group] = $this->thresholds['total'] ?? 999999;
100100
}
101101
}
102102
$this->regex = $regex;

0 commit comments

Comments
 (0)