mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
44 lines
906 B
PHP
44 lines
906 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
|
|
{--browse : Open a browser instead of using headless mode}
|
|
{--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'];
|
|
}
|
|
}
|