diff --git a/sapi/cli/tests/php_cli_server.inc b/sapi/cli/tests/php_cli_server.inc index 60ae3254dba..44ee76ea7fc 100644 --- a/sapi/cli/tests/php_cli_server.inc +++ b/sapi/cli/tests/php_cli_server.inc @@ -5,6 +5,7 @@ function php_cli_server_start($code = 'echo "Hello world";', $no_router = FALSE) $php_executable = getenv('TEST_PHP_EXECUTABLE'); $doc_root = __DIR__; $router = "index.php"; + if ($code) { file_put_contents($doc_root . '/' . $router, ''); }