Skip to content

Commit ef58a0e

Browse files
ausinicolas-grekas
authored andcommitted
[Process] Pass the commandline as array to proc_open()
1 parent 2c09ff8 commit ef58a0e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/HttpClientTestCase.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,12 @@ private static function startVulcain(HttpClientInterface $client)
327327
'KEY_FILE' => __DIR__.'/Fixtures/tls/server.key',
328328
'CERT_FILE' => __DIR__.'/Fixtures/tls/server.crt',
329329
]);
330-
$process->start();
330+
331+
try {
332+
$process->start();
333+
} catch (ProcessFailedException $e) {
334+
self::markTestSkipped('vulcain failed: '.$e->getMessage());
335+
}
331336

332337
register_shutdown_function($process->stop(...));
333338
sleep('\\' === \DIRECTORY_SEPARATOR ? 10 : 1);

0 commit comments

Comments
 (0)