Skip to content

Commit 91e71ca

Browse files
Merge branch '9.5'
2 parents c2e4aa6 + 5e34d61 commit 91e71ca

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

ChangeLog-8.5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
88

99
* [#4874](https://github.com/sebastianbergmann/phpunit/pull/4874): `PHP_FLOAT_EPSILON` is now used instead of hardcoded `0.0000000001` in `PHPUnit\Framework\Constraint\IsIdentical`
1010

11+
### Fixed
12+
13+
* When the HTML code coverage report's configured low upper bound is larger than the high lower bound then the default values are used instead
14+
1115
## [8.5.23] - 2022-01-21
1216

1317
### Fixed

ChangeLog-9.5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 9.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [9.5.15] - 2022-MM-DD
6+
7+
### Fixed
8+
9+
* When the HTML code coverage report's configured low upper bound is larger than the high lower bound then the default values are used instead
10+
511
## [9.5.14] - 2022-02-18
612

713
### Changed
@@ -122,6 +128,7 @@ All notable changes of the PHPUnit 9.5 release series are documented in this fil
122128

123129
* [#4535](https://github.com/sebastianbergmann/phpunit/issues/4535): `getMockFromWsdl()` does not handle methods that do not have parameters correctly
124130

131+
[9.5.15]: https://github.com/sebastianbergmann/phpunit/compare/9.5.14...9.5
125132
[9.5.14]: https://github.com/sebastianbergmann/phpunit/compare/9.5.13...9.5.14
126133
[9.5.13]: https://github.com/sebastianbergmann/phpunit/compare/9.5.12...9.5.13
127134
[9.5.12]: https://github.com/sebastianbergmann/phpunit/compare/9.5.11...9.5.12

src/TextUI/Configuration/Merger.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ public function merge(CliConfiguration $cliConfiguration, XmlConfiguration $xmlC
211211
if ($xmlConfiguration->codeCoverage()->hasHtml()) {
212212
$coverageHtmlHighLowerBound = $xmlConfiguration->codeCoverage()->html()->highLowerBound();
213213
$coverageHtmlLowUpperBound = $xmlConfiguration->codeCoverage()->html()->lowUpperBound();
214+
215+
if ($coverageHtmlLowUpperBound > $coverageHtmlHighLowerBound) {
216+
$coverageHtmlLowUpperBound = 50;
217+
$coverageHtmlHighLowerBound = 90;
218+
}
214219
}
215220

216221
if ($cliConfiguration->hasCoverageHtml()) {

0 commit comments

Comments
 (0)