mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix tests when coverage is not available
This commit is contained in:
@ -17,7 +17,7 @@ it('adds coverage if --coverage exist', function () {
|
|||||||
$arguments = $plugin->handleArguments(['--coverage']);
|
$arguments = $plugin->handleArguments(['--coverage']);
|
||||||
expect($arguments)->toEqual(['--coverage-php', Coverage::getPath()])
|
expect($arguments)->toEqual(['--coverage-php', Coverage::getPath()])
|
||||||
->and($plugin->coverage)->toBeTrue();
|
->and($plugin->coverage)->toBeTrue();
|
||||||
})->skip(! \Pest\Support\Coverage::isAvailable() || ! in_array('coverage', xdebug_info('mode'), true), 'Coverage is not available');
|
})->skip(! \Pest\Support\Coverage::isAvailable() || ! function_exists('xdebug_info') || ! in_array('coverage', xdebug_info('mode'), true), 'Coverage is not available');
|
||||||
|
|
||||||
it('adds coverage if --min exist', function () {
|
it('adds coverage if --min exist', function () {
|
||||||
$plugin = new CoveragePlugin(new ConsoleOutput());
|
$plugin = new CoveragePlugin(new ConsoleOutput());
|
||||||
|
|||||||
Reference in New Issue
Block a user