From 9459507217ecef80fe6eae913f9312689ab49e10 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 24 Jan 2021 07:30:27 +0100 Subject: [PATCH] Closes #4590 --- ChangeLog-9.5.md | 7 +++++++ src/TextUI/Help.php | 2 +- tests/end-to-end/cli/_files/output-cli-help-color.txt | 2 +- tests/end-to-end/cli/_files/output-cli-usage.txt | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog-9.5.md b/ChangeLog-9.5.md index 46a6a609ed4..e74ecd072b9 100644 --- a/ChangeLog-9.5.md +++ b/ChangeLog-9.5.md @@ -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.2] - 2021-MM-DD + +### Fixed + +* [#4590](https://github.com/sebastianbergmann/phpunit/issues/4590): `--coverage-text` CLI option is documented wrong + ## [9.5.1] - 2021-01-17 ### Fixed @@ -21,5 +27,6 @@ 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.2]: https://github.com/sebastianbergmann/phpunit/compare/9.5.1...9.5 [9.5.1]: https://github.com/sebastianbergmann/phpunit/compare/9.5.0...9.5.1 [9.5.0]: https://github.com/sebastianbergmann/phpunit/compare/9.4.4...9.5.0 diff --git a/src/TextUI/Help.php b/src/TextUI/Help.php index 35b39b959de..7c5d51c79d7 100644 --- a/src/TextUI/Help.php +++ b/src/TextUI/Help.php @@ -40,7 +40,7 @@ final class Help ['arg' => '--coverage-crap4j ', 'desc' => 'Generate code coverage report in Crap4J XML format'], ['arg' => '--coverage-html ', 'desc' => 'Generate code coverage report in HTML format'], ['arg' => '--coverage-php ', 'desc' => 'Export PHP_CodeCoverage object to file'], - ['arg' => '--coverage-text ', 'desc' => 'Generate code coverage report in text format [default: standard output]'], + ['arg' => '--coverage-text=', 'desc' => 'Generate code coverage report in text format [default: standard output]'], ['arg' => '--coverage-xml ', 'desc' => 'Generate code coverage report in PHPUnit XML format'], ['arg' => '--coverage-cache ', 'desc' => 'Cache static analysis results'], ['arg' => '--warm-coverage-cache', 'desc' => 'Warm static analysis cache'], diff --git a/tests/end-to-end/cli/_files/output-cli-help-color.txt b/tests/end-to-end/cli/_files/output-cli-help-color.txt index e12ff59f8b5..ba3d18bb401 100644 --- a/tests/end-to-end/cli/_files/output-cli-help-color.txt +++ b/tests/end-to-end/cli/_files/output-cli-help-color.txt @@ -12,7 +12,7 @@ --coverage-html   Generate code coverage report in HTML format --coverage-php   Export PHP_CodeCoverage object to file - --coverage-text   Generate code coverage report in text + --coverage-text=  Generate code coverage report in text format [default: standard output] --coverage-xml   Generate code coverage report in PHPUnit XML format diff --git a/tests/end-to-end/cli/_files/output-cli-usage.txt b/tests/end-to-end/cli/_files/output-cli-usage.txt index 6e098d03db5..74b750f4236 100644 --- a/tests/end-to-end/cli/_files/output-cli-usage.txt +++ b/tests/end-to-end/cli/_files/output-cli-usage.txt @@ -11,7 +11,7 @@ Code Coverage Options: --coverage-crap4j Generate code coverage report in Crap4J XML format --coverage-html Generate code coverage report in HTML format --coverage-php Export PHP_CodeCoverage object to file - --coverage-text Generate code coverage report in text format [default: standard output] + --coverage-text= Generate code coverage report in text format [default: standard output] --coverage-xml Generate code coverage report in PHPUnit XML format --coverage-cache Cache static analysis results --warm-coverage-cache Warm static analysis cache