From 9208c69b217fa9ff64933dbd8f891c1fd39b9083 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 3 Dec 2020 00:32:57 +0100 Subject: [PATCH] [HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests. --- .../Component/HttpFoundation/Tests/ResponseFunctionalTest.php | 2 +- .../Session/Storage/Handler/AbstractSessionHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php index e94f4defc4..49acff5abc 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php @@ -23,7 +23,7 @@ class ResponseFunctionalTest extends TestCase 1 => ['file', '/dev/null', 'w'], 2 => ['file', '/dev/null', 'w'], ]; - if (!self::$server = @proc_open('exec php -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/response-functional')) { + if (!self::$server = @proc_open('exec '.\PHP_BINARY.' -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/response-functional')) { self::markTestSkipped('PHP server unable to start.'); } sleep(1); diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php index 4a045f2ad2..45257abb98 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php @@ -23,7 +23,7 @@ class AbstractSessionHandlerTest extends TestCase 1 => ['file', '/dev/null', 'w'], 2 => ['file', '/dev/null', 'w'], ]; - if (!self::$server = @proc_open('exec php -S localhost:8053', $spec, $pipes, __DIR__.'/Fixtures')) { + if (!self::$server = @proc_open('exec '.\PHP_BINARY.' -S localhost:8053', $spec, $pipes, __DIR__.'/Fixtures')) { self::markTestSkipped('PHP server unable to start.'); } sleep(1);