File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,19 @@ abstract class AbstractWebServerEmbedded extends \PHPUnit\Framework\TestCase
2424{
2525 private static $ httpServer ;
2626
27+ /** @var int */
28+ protected static $ wakeupDeprecatedVersion = 80500 ;
29+
2730 public static function setUpBeforeClass (): void
2831 {
2932 $ commandLine = 'php -S localhost:8080 -t tests/PhpWordTests/_files ' ;
3033
31- self ::$ httpServer = Process::fromShellCommandline ($ commandLine );
34+ // need Symfony/Process 7.3.4
35+ if (PHP_VERSION_ID < self ::$ wakeupDeprecatedVersion ) {
36+ self ::$ httpServer = Process::fromShellCommandline ($ commandLine );
37+ } else {
38+ self ::$ httpServer = @Process::fromShellCommandline ($ commandLine );
39+ }
3240 self ::$ httpServer ->start ();
3341 while (!self ::$ httpServer ->isRunning ()) {
3442 usleep (1000 );
You can’t perform that action at this time.
0 commit comments