Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 814397d

Browse files
minor #58499 [PhpUnitBridge] Use total for asserting deprecation count when a group is not defined (lyrixx)
This PR was merged into the 7.2 branch. Discussion ---------- [PhpUnitBridge] Use `total` for asserting deprecation count when a group is not defined | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 02d1110 [PhpUnitBridge] Use 'total' for asserting deprecation count when a group is not defined
2 parents 789055e + 02d1110 commit 814397d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Bridge/PhpUnit/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
---

src/Symfony/Bridge/PhpUnit/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)