Skip to content

Commit 39929b8

Browse files
committed
[HttpFoundation] Make sure we reuse the current PHP binary for the webserver process in functional tests.
1 parent ae29023 commit 39929b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/ResponseFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function setUpBeforeClass(): void
2323
1 => ['file', '/dev/null', 'w'],
2424
2 => ['file', '/dev/null', 'w'],
2525
];
26-
if (!self::$server = @proc_open('exec php -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/response-functional')) {
26+
if (!self::$server = @proc_open('exec '.\PHP_BINARY.' -S localhost:8054', $spec, $pipes, __DIR__.'/Fixtures/response-functional')) {
2727
self::markTestSkipped('PHP server unable to start.');
2828
}
2929
sleep(1);

Tests/Session/Storage/Handler/AbstractSessionHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function setUpBeforeClass(): void
2323
1 => ['file', '/dev/null', 'w'],
2424
2 => ['file', '/dev/null', 'w'],
2525
];
26-
if (!self::$server = @proc_open('exec php -S localhost:8053', $spec, $pipes, __DIR__.'/Fixtures')) {
26+
if (!self::$server = @proc_open('exec '.\PHP_BINARY.' -S localhost:8053', $spec, $pipes, __DIR__.'/Fixtures')) {
2727
self::markTestSkipped('PHP server unable to start.');
2828
}
2929
sleep(1);

0 commit comments

Comments
 (0)