This commit is contained in:
parent
efc6500ead
commit
375cd7debb
|
@ -24,11 +24,12 @@ class WsdlDownloaderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
protected function startPhpWebserver()
|
protected function startPhpWebserver()
|
||||||
{
|
{
|
||||||
|
$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
|
||||||
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
if ('Windows' == substr(php_uname('s'), 0, 7)) {
|
||||||
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".$dir."' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
|
||||||
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
|
||||||
} else {
|
} else {
|
||||||
$shellCommand = "nohup php -S localhost:8000 -t ".__DIR__.DIRECTORY_SEPARATOR."Fixtures &";
|
$shellCommand = "nohup php -S localhost:8000 -t ".$dir." &";
|
||||||
}
|
}
|
||||||
$output = array();
|
$output = array();
|
||||||
exec($shellCommand, $output);
|
exec($shellCommand, $output);
|
||||||
|
|
Loading…
Reference in New Issue