Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U for uncovered #1233

Merged
merged 3 commits into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Console/OutputFormatter/DotFormatter.php
Expand Up @@ -64,7 +64,7 @@ public function start(int $mutationCount): void
'',
'<killed>.</killed>: killed, '
. '<escaped>M</escaped>: escaped, '
. '<uncovered>S</uncovered>: uncovered, '
. '<uncovered>U</uncovered>: uncovered, '
. '<with-error>E</with-error>: fatal error, '
. '<timeout>T</timeout>: timed out',
'',
Expand All @@ -81,7 +81,7 @@ public function advance(MutantExecutionResult $executionResult, int $mutationCou

break;
case DetectionStatus::NOT_COVERED:
$this->output->write('<uncovered>S</uncovered>');
$this->output->write('<uncovered>U</uncovered>');

break;
case DetectionStatus::ESCAPED:
Expand Down
10 changes: 5 additions & 5 deletions tests/phpunit/Console/OutputFormatter/DotFormatterTest.php
Expand Up @@ -55,7 +55,7 @@ public function test_start_logs_initial_starting_text(): void
'',
'<killed>.</killed>: killed, '
. '<escaped>M</escaped>: escaped, '
. '<uncovered>S</uncovered>: uncovered, '
. '<uncovered>U</uncovered>: uncovered, '
. '<with-error>E</with-error>: fatal error, '
. '<timeout>T</timeout>: timed out',
'',
Expand Down Expand Up @@ -139,7 +139,7 @@ public function test_not_covered_correctly_in_console(): void
$outputNotCovered
->expects($this->once())
->method('write')
->with('<uncovered>S</uncovered>')
->with('<uncovered>U</uncovered>')
;

$dot = new DotFormatter($outputNotCovered);
Expand All @@ -165,7 +165,7 @@ public function test_it_prints_total_number_of_mutations(): void
$this->assertSame(str_replace("\n", PHP_EOL,
<<<'TXT'

.: killed, M: escaped, S: uncovered, E: fatal error, T: timed out
.: killed, M: escaped, U: uncovered, E: fatal error, T: timed out

.................................................. ( 50 / 127)
.................................................. (100 / 127)
Expand Down Expand Up @@ -194,7 +194,7 @@ public function test_it_prints_current_number_of_pending_mutations(): void
$this->assertSame(str_replace("\n", PHP_EOL,
<<<'TXT'

.: killed, M: escaped, S: uncovered, E: fatal error, T: timed out
.: killed, M: escaped, U: uncovered, E: fatal error, T: timed out

.................................................. ( 50)
.................................................. ( 100)
Expand Down Expand Up @@ -231,7 +231,7 @@ private function getStartOutputFormatter()
'',
'<killed>.</killed>: killed, '
. '<escaped>M</escaped>: escaped, '
. '<uncovered>S</uncovered>: uncovered, '
. '<uncovered>U</uncovered>: uncovered, '
. '<with-error>E</with-error>: fatal error, '
. '<timeout>T</timeout>: timed out',
'',
Expand Down