mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
In windows not work full path is used in [7e05b3ca4f/src/Console/DuskCommand.php (L91)) and [163d5c2bd8/src/Adapters/Laravel/Commands/TestCommand.php (L108))
42 lines
815 B
PHP
42 lines
815 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Laravel\Commands;
|
|
|
|
use Laravel\Dusk\Console\DuskCommand;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class PestDuskCommand extends DuskCommand
|
|
{
|
|
/**
|
|
* The console command name.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'pest:dusk {--without-tty : Disable output to TTY}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Run the Dusk tests for the application with Pest';
|
|
|
|
/**
|
|
* Get the PHP binary to execute.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
protected function binary()
|
|
{
|
|
if ('phpdbg' === PHP_SAPI) {
|
|
return [PHP_BINARY, '-qrr', 'vendor/pestphp/pest/bin/pest'];
|
|
}
|
|
|
|
return [PHP_BINARY, 'vendor/pestphp/pest/bin/pest'];
|
|
}
|
|
}
|