Skip to content

Commit

Permalink
U for uncovered (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Mar 30, 2020
1 parent 7d589c8 commit 9e449be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Console/OutputFormatter/DotFormatter.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 9e449be

Please sign in to comment.