Skip to content

Commit

Permalink
Merge pull request #771 from nunomaduro/patch-1
Browse files Browse the repository at this point in the history
[6.x] Uses Pest if available
  • Loading branch information
taylorotwell authored May 6, 2020
2 parents 002dc82 + 5932ffd commit f851f59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ public function handle()
*/
protected function binary()
{
$command = class_exists(\Pest\Laravel\PestServiceProvider::class)
? 'vendor/pestphp/pest/bin/pest'
: 'vendor/phpunit/phpunit/phpunit';

if ('phpdbg' === PHP_SAPI) {
return [PHP_BINARY, '-qrr', 'vendor/phpunit/phpunit/phpunit'];
return [PHP_BINARY, '-qrr', $command];
}

return [PHP_BINARY, 'vendor/phpunit/phpunit/phpunit'];
return [PHP_BINARY, $command];
}

/**
Expand Down

0 comments on commit f851f59

Please sign in to comment.