in src/TestUtils/GcloudWrapper/AppEngine.php [128:155]
public function run(
$targets = 'app.yaml',
$phpCgiPath = '/usr/bin/php-cgi'
) {
$cmd = 'dev_appserver.py --port ' . $this->port
. ' --skip_sdk_update_check true'
. ' --php_executable_path ' . $phpCgiPath
. ' ' . $targets;
$orgDir = getcwd();
if (chdir($this->dir) === false) {
$this->errorLog('Can not chdir to ' . $this->dir);
return false;
}
$this->process = $this->createProcess($cmd);
$this->process->start();
chdir($orgDir);
sleep(3);
if (!$this->process->isRunning()) {
$this->errorLog('dev_appserver failed to run.');
$this->errorLog($this->process->getErrorOutput());
return false;
}
$this->isRunning = true;
return true;
}