feat: Rework the diff command output #1139
unit-tests.yaml
on: pull_request
Matrix: infection
Matrix: unit-tests
Unit tests status
2s
Annotations
2 errors and 2 warnings
Infection (PHP 8.1)
Process completed with exit code 2.
|
Unit tests status
Process completed with exit code 1.
|
Infection (PHP 8.1):
src/Console/Command/Diff.php#L274
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$io->newLine();
self::renderPaths('-', $diff->getPharInfoA(), $diffResult[0], $io);
self::renderPaths('+', $diff->getPharInfoB(), $diffResult[1], $io);
- $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[1])));
+ $io->error(sprintf('%d file(s) difference', count($diffResult[1]) + count($diffResult[1])));
}
/**
* @param list<non-empty-string> $paths
|
Infection (PHP 8.1):
src/Console/Command/Diff.php#L274
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$io->newLine();
self::renderPaths('-', $diff->getPharInfoA(), $diffResult[0], $io);
self::renderPaths('+', $diff->getPharInfoB(), $diffResult[1], $io);
- $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[1])));
+ $io->error(sprintf('%d file(s) difference', count($diffResult[0]) + count($diffResult[0])));
}
/**
* @param list<non-empty-string> $paths
|