src/SupportsChrome.php
/**
     * Start the Chrome driver process.
     *
     * @return void
     */
Start the Chrome driver process.
@return void
Start the Chrome driver process . @return void
public static function startChromeDriver()
    {
        if (PHP_OS === 'Darwin') {
            static::$chromeProcess = new Process('./chromedriver-mac', realpath(__DIR__.'/../bin'), null, null, null);
        } else {
            static::$chromeProcess = new Process('./chromedriver-linux', realpath(__DIR__.'/../bin'), ['DISPLAY' => ':0'], null, null);
        }
        static::$chromeProcess->start();
        static::afterClass(function () {
            static::stopChromeDriver();
        });
    }
public static function startChromeDriver ( ) { if ( PHP_OS === 'Darwin' ) { static :: $ chromeProcess = new Process ( './chromedriver-mac' , realpath ( __DIR__ . '/../bin' ) , null , null , null ) ; } else { static :: $ chromeProcess = new Process ( './chromedriver-linux' , realpath ( __DIR__ . '/../bin' ) , [ 'DISPLAY' => ':0' ] , null , null ) ; } static :: $ chromeProcess -> start ( ) ; static :: afterClass ( function ( ) { static :: stopChromeDriver ( ) ; } ) ; }
Start the Chrome driver process.
Start the Chrome driver process .