public static function startDevServer()

in src/TestUtils/DevAppserverTestTrait.php [56:77]


    public static function startDevServer()
    {
        if (getenv('RUN_DEVSERVER_TESTS') !== 'true') {
            self::markTestSkipped(
                'To run this test, set RUN_DEVSERVER_TESTS env to true.'
            );
        }
        $phpCgi = getenv('PHP_CGI_PATH');
        if ($phpCgi === false) {
            $phpCgi = '/usr/bin/php-cgi';
        }
        $targets = getenv('LOCAL_TEST_TARGETS');
        if ($targets === false) {
            $targets = 'app.yaml';
        }
        self::$gcloudWrapper = new GcloudWrapper('', '');
        static::beforeRun();
        if (self::$gcloudWrapper->run($targets, $phpCgi) === false) {
            self::fail('dev_appserver failed');
        }
        static::afterRun();
    }