Skip to content

Commit

Permalink
Merge branch '8.5' into 9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 21, 2022
2 parents eef449e + 5ceeed4 commit 5e34d61
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog-8.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil

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

### Fixed

* 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

## [8.5.23] - 2022-01-21

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions ChangeLog-9.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [9.5.15] - 2022-MM-DD

### Fixed

* 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

## [9.5.14] - 2022-02-18

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

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

[9.5.15]: https://github.com/sebastianbergmann/phpunit/compare/9.5.14...9.5
[9.5.14]: https://github.com/sebastianbergmann/phpunit/compare/9.5.13...9.5.14
[9.5.13]: https://github.com/sebastianbergmann/phpunit/compare/9.5.12...9.5.13
[9.5.12]: https://github.com/sebastianbergmann/phpunit/compare/9.5.11...9.5.12
Expand Down
12 changes: 5 additions & 7 deletions src/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ final class TestRunner extends BaseTestRunner

public const EXCEPTION_EXIT = 2;

/**
* @var bool
*/
private static $versionStringPrinted = false;

/**
* @var CodeCoverageFilter
*/
Expand Down Expand Up @@ -334,8 +329,6 @@ public function run(TestSuite $suite, array $arguments = [], array $warnings = [
Version::getVersionString() . "\n"
);

self::$versionStringPrinted = true;

foreach ($arguments['listeners'] as $listener) {
$result->addListener($listener);
}
Expand Down Expand Up @@ -1142,6 +1135,11 @@ private function handleConfiguration(array &$arguments): void
$arguments['timeoutForMediumTests'] = $arguments['timeoutForMediumTests'] ?? 10;
$arguments['timeoutForSmallTests'] = $arguments['timeoutForSmallTests'] ?? 1;
$arguments['verbose'] = $arguments['verbose'] ?? false;

if ($arguments['reportLowUpperBound'] > $arguments['reportHighLowerBound']) {
$arguments['reportLowUpperBound'] = 50;
$arguments['reportHighLowerBound'] = 90;
}
}

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

0 comments on commit 5e34d61

Please sign in to comment.