Skip to content

Commit c91f9a5

Browse files
committed
Revert
1 parent cad33f0 commit c91f9a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/spec/ReferenceTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,13 @@ public function testResolveFileHttp()
237237
$host = 'localhost:8787'; # create mock web server to avoid calling real GitHub URL and rate limit hit
238238
// $file = 'https://raw.githubusercontent.com/cebe/php-openapi/290389bbd337cf4d70ecedfd3a3d886715e19552/tests/spec/data/reference/base.yaml';
239239
if (stripos(PHP_OS_FAMILY, 'Windows') !== false) {
240-
// $cmd = 'powershell -Command "Start-Process php -ArgumentList \'-S '.$host.'\' -NoNewWindow -RedirectStandardOutput \'NUL\'"';
241-
$cmd = 'powershell -Command "Start-Process php -ArgumentList \'-S localhost:8787\' -WindowStyle Hidden -RedirectStandardOutput \'NUL:\'"';
242-
243-
240+
$cmd = 'powershell -Command "Start-Process php -ArgumentList \'-S '.$host.'\' -NoNewWindow"';
244241
$res = popen($cmd, "r");
245242
} else {
246243
exec('nohup php -S '.$host.' > /dev/null 2>&1 &');
247244
}
248245
// ENH: turn off the server
246+
// ENH: avoid displaying stdout in CI while starting the server
249247
sleep(2);
250248

251249
// $path = '/cebe/php-openapi/290389bbd337cf4d70ecedfd3a3d886715e19552/tests/spec/data/reference/base.yaml';

0 commit comments

Comments
 (0)