Skip to content

Commit cad33f0

Browse files
committed
Discard redundant stdout messages - attempt 5
1 parent b91e163 commit cad33f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/spec/ReferenceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ public function testResolveFileHttp()
238238
// $file = 'https://raw.githubusercontent.com/cebe/php-openapi/290389bbd337cf4d70ecedfd3a3d886715e19552/tests/spec/data/reference/base.yaml';
239239
if (stripos(PHP_OS_FAMILY, 'Windows') !== false) {
240240
// $cmd = 'powershell -Command "Start-Process php -ArgumentList \'-S '.$host.'\' -NoNewWindow -RedirectStandardOutput \'NUL\'"';
241-
$cmd = 'powershell -Command "Start-Job { php -S localhost:8787 *> NUL: 2>&1 }"';
241+
$cmd = 'powershell -Command "Start-Process php -ArgumentList \'-S localhost:8787\' -WindowStyle Hidden -RedirectStandardOutput \'NUL:\'"';
242+
243+
242244
$res = popen($cmd, "r");
243245
} else {
244246
exec('nohup php -S '.$host.' > /dev/null 2>&1 &');

0 commit comments

Comments
 (0)