File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \HttpClient \Tests ;
13
13
14
- use PHPUnit \Framework \SkippedTestSuiteError ;
15
14
use Symfony \Component \HttpClient \Exception \ClientException ;
16
15
use Symfony \Component \HttpClient \Exception \TransportException ;
17
16
use Symfony \Component \HttpClient \Internal \ClientState ;
@@ -318,7 +317,7 @@ private static function startVulcain(HttpClientInterface $client)
318
317
}
319
318
320
319
if ('\\' === \DIRECTORY_SEPARATOR ) {
321
- throw new SkippedTestSuiteError ('Testing with the "vulcain" is not supported on Windows. ' );
320
+ self :: markTestSkipped ('Testing with the "vulcain" is not supported on Windows. ' );
322
321
}
323
322
324
323
$ process = new Process (['vulcain ' ], null , [
@@ -335,14 +334,14 @@ private static function startVulcain(HttpClientInterface $client)
335
334
336
335
if (!$ process ->isRunning ()) {
337
336
if ('\\' !== \DIRECTORY_SEPARATOR && 127 === $ process ->getExitCode ()) {
338
- throw new SkippedTestSuiteError ('vulcain binary is missing ' );
337
+ self :: markTestSkipped ('vulcain binary is missing ' );
339
338
}
340
339
341
340
if ('\\' !== \DIRECTORY_SEPARATOR && 126 === $ process ->getExitCode ()) {
342
- throw new SkippedTestSuiteError ('vulcain binary is not executable ' );
341
+ self :: markTestSkipped ('vulcain binary is not executable ' );
343
342
}
344
343
345
- throw new SkippedTestSuiteError ((new ProcessFailedException ($ process ))->getMessage ());
344
+ self :: markTestSkipped ((new ProcessFailedException ($ process ))->getMessage ());
346
345
}
347
346
348
347
self ::$ vulcainStarted = true ;
You can’t perform that action at this time.
0 commit comments