This commit is contained in:
Nuno Maduro
2022-09-15 21:11:42 +01:00
parent 3f111708e3
commit 0669423138
3 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,6 @@ final class Coverage implements AddsOutput, HandlesArguments
}
}
$this->output->writeln(['']);
return $exitCode;

View File

@ -11,6 +11,7 @@ use SebastianBergmann\CodeCoverage\Node\File;
use SebastianBergmann\Environment\Runtime;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Terminal;
use function Termwind\render;
use function Termwind\renderUsing;
@ -121,7 +122,6 @@ final class Coverage
));
}
$totalCoverageAsString = $totalCoverage->asFloat() === 0.0
? '0.0'
: number_format($totalCoverage->asFloat(), 1, '.', '');

View File

@ -31,7 +31,7 @@ test('allows to run a directory', function () use ($run, $snapshot) {
})->skip(PHP_OS_FAMILY === 'Windows');
it('has ascii chars', function () use ($run, $snapshot) {
file_put_contents(__DIR__.'/output.txt', $run('tests/Fixtures/DirectoryWithTests/ExampleTest.php', true));
file_put_contents(__DIR__ . '/output.txt', $run('tests/Fixtures/DirectoryWithTests/ExampleTest.php', true));
expect($run('tests/Fixtures/DirectoryWithTests/ExampleTest.php', true))->toContain($snapshot('has-ascii-chars'));
})->skip(PHP_OS_FAMILY === 'Windows');