1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

Make it easier to run CLI server tests standalone

This commit is contained in:
Nikita Popov
2021-09-17 10:15:35 +02:00
parent 4087aba60d
commit 62503236d5
+1 -1
View File
@@ -12,7 +12,7 @@ function php_cli_server_start(
?string $router = 'index.php',
array $cmd_args = []
): CliServerInfo {
$php_executable = getenv('TEST_PHP_EXECUTABLE');
$php_executable = getenv('TEST_PHP_EXECUTABLE') ?: PHP_BINARY;
$error = null;
// Create dedicated doc root to avoid index.php clashes between tests.