8000 [PhpUnitBridge] Use 'total' for asserting deprecation count when a gr… · symfony/phpunit-bridge@676fcfa · GitHub
[go: up one dir, main page]

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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
---

DeprecationErrorHandler/Configuration.php

Lines changed: 1 addition & 1 deletion
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)
0