From c2bd612a4c1ef1d8d303f2c1962eaf90a2adacc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= <9282069+kubawerlos@users.noreply.github.com> Date: Sat, 30 Nov 2019 08:19:35 +0100 Subject: [PATCH] CoverageDoesNotExistException - fix message (#870) --- src/TestFramework/Coverage/CoverageDoesNotExistException.php | 3 ++- .../Coverage/CoverageDoesNotExistExceptionTest.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/TestFramework/Coverage/CoverageDoesNotExistException.php b/src/TestFramework/Coverage/CoverageDoesNotExistException.php index f59e62712..a335ea393 100644 --- a/src/TestFramework/Coverage/CoverageDoesNotExistException.php +++ b/src/TestFramework/Coverage/CoverageDoesNotExistException.php @@ -45,6 +45,7 @@ final class CoverageDoesNotExistException extends InfectionException private const INFECTION_USAGE_SUGGESTION = <<getMessage() ); @@ -87,9 +88,10 @@ public function test_for_correctly_escaped_output_of_subprocesses(): void public function test_log_missed_debugger_or_coverage_option(): void { - $message = 'Neither phpdbg or xdebug has been found. One of those is required by Infection in order to generate coverage data. Either:' . "\n" . + $message = 'Neither pcov, phpdbg or xdebug has been found. One of those is required by Infection in order to generate coverage data. Either:' . "\n" . '- Enable xdebug and run infection again' . "\n" . '- Use phpdbg: phpdbg -qrr infection' . "\n" . + '- Enable pcov and run infection again' . "\n" . '- Use --coverage option with path to the existing coverage report' . "\n" . '- Use --initial-tests-php-options option with `-d zend_extension=xdebug.so` and/or any extra php parameters';