src/Console/DuskCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->purgeScreenshots();
        $options = implode(' ', array_slice($_SERVER['argv'], 2));
        $this->withDuskEnvironment(function () use ($options) {
            (new Process(trim('php vendor/bin/phpunit -c "'.base_path('phpunit.dusk.xml').'" '.$options), base_path(), []))
                    ->setTty(true)
                    ->run(function ($type, $line) {
                        $this->output->write($line);
                    });
        });
    }
public function handle ( ) { $ this -> purgeScreenshots ( ) ; $ options = implode ( ' ' , array_slice ( $ _SERVER [ 'argv' ] , 2 ) ) ; $ this -> withDuskEnvironment ( function ( ) use ( $ options ) { ( new Process ( trim ( 'php vendor/bin/phpunit -c "' . base_path ( 'phpunit.dusk.xml' ) . '" ' . $ options ) , base_path ( ) , [ ] ) ) -> setTty ( true ) -> run ( function ( $ type , $ line ) { $ this -> output -> write ( $ line ) ; } ) ; } ) ; }
Execute the console command.
Execute the console command .