mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
42 lines
789 B
PHP
42 lines
789 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/bin/pest'];
|
|
}
|
|
|
|
return [PHP_BINARY, 'vendor/bin/pest'];
|
|
}
|
|
}
|