fix: Fix the Diff command #1106
unit-tests.yaml
on: pull_request
Matrix: infection
Matrix: unit-tests
Unit tests status
3s
Annotations
2 errors and 1 warning
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#L249
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
private static function renderPaths(string $symbol, PharInfo $pharInfo, array $paths, IO $io) : void
{
$bufferedOutput = new BufferedOutput($io->getVerbosity(), $io->isDecorated(), $io->getOutput()->getFormatter());
- PharInfoRenderer::renderContent($bufferedOutput, $pharInfo, false, false);
+ PharInfoRenderer::renderContent($bufferedOutput, $pharInfo, false, true);
$lines = array_map(static fn(string $line) => '' === $line ? '' : $symbol . ' ' . $line, explode(PHP_EOL, $bufferedOutput->fetch()));
$io->writeln($lines);
}
|