Skip to content

Commit 5e34d61

Browse files
Merge branch '8.5' into 9.5
2 parents eef449e + 5ceeed4 commit 5e34d61

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
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/TestRunner.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ final class TestRunner extends BaseTestRunner
9393

9494
public const EXCEPTION_EXIT = 2;
9595

96-
/**
97-
* @var bool
98-
*/
99-
private static $versionStringPrinted = false;
100-
10196
/**
10297
* @var CodeCoverageFilter
10398
*/
@@ -334,8 +329,6 @@ public function run(TestSuite $suite, array $arguments = [], array $warnings = [
334329
Version::getVersionString() . "\n"
335330
);
336331

337-
self::$versionStringPrinted = true;
338-
339332
foreach ($arguments['listeners'] as $listener) {
340333
$result->addListener($listener);
341334
}
@@ -1142,6 +1135,11 @@ private function handleConfiguration(array &$arguments): void
11421135
$arguments['timeoutForMediumTests'] = $arguments['timeoutForMediumTests'] ?? 10;
11431136
$arguments['timeoutForSmallTests'] = $arguments['timeoutForSmallTests'] ?? 1;
11441137
$arguments['verbose'] = $arguments['verbose'] ?? false;
1138+
1139+
if ($arguments['reportLowUpperBound'] > $arguments['reportHighLowerBound']) {
1140+
$arguments['reportLowUpperBound'] = 50;
1141+
$arguments['reportHighLowerBound'] = 90;
1142+
}
11451143
}
11461144

11471145
private function processSuiteFilters(TestSuite $suite, array $arguments): void

0 commit comments

Comments
 (0)