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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user