mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
Style
This commit is contained in:
@ -113,7 +113,6 @@ final class Coverage implements AddsOutput, HandlesArguments
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->output->writeln(['']);
|
$this->output->writeln(['']);
|
||||||
|
|
||||||
return $exitCode;
|
return $exitCode;
|
||||||
|
|||||||
@ -11,6 +11,7 @@ use SebastianBergmann\CodeCoverage\Node\File;
|
|||||||
use SebastianBergmann\Environment\Runtime;
|
use SebastianBergmann\Environment\Runtime;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Terminal;
|
use Symfony\Component\Console\Terminal;
|
||||||
|
|
||||||
use function Termwind\render;
|
use function Termwind\render;
|
||||||
use function Termwind\renderUsing;
|
use function Termwind\renderUsing;
|
||||||
|
|
||||||
@ -121,7 +122,6 @@ final class Coverage
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$totalCoverageAsString = $totalCoverage->asFloat() === 0.0
|
$totalCoverageAsString = $totalCoverage->asFloat() === 0.0
|
||||||
? '0.0'
|
? '0.0'
|
||||||
: number_format($totalCoverage->asFloat(), 1, '.', '');
|
: number_format($totalCoverage->asFloat(), 1, '.', '');
|
||||||
|
|||||||
@ -31,7 +31,7 @@ test('allows to run a directory', function () use ($run, $snapshot) {
|
|||||||
})->skip(PHP_OS_FAMILY === 'Windows');
|
})->skip(PHP_OS_FAMILY === 'Windows');
|
||||||
|
|
||||||
it('has ascii chars', function () use ($run, $snapshot) {
|
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'));
|
expect($run('tests/Fixtures/DirectoryWithTests/ExampleTest.php', true))->toContain($snapshot('has-ascii-chars'));
|
||||||
})->skip(PHP_OS_FAMILY === 'Windows');
|
})->skip(PHP_OS_FAMILY === 'Windows');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user