X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fparse_args.php;h=712fa990a15869940e43b273a127f7ae77d5b7d5;hb=d20c6b4814808f6292298ae5cada12a7dd5b69eb;hp=6fdef4bd7e7130951873849435390972cfc05bd5;hpb=8da25b8f417af37d783289c118c798f034c9f9fb;p=plcapi.git diff --git a/tests/parse_args.php b/tests/parse_args.php index 6fdef4b..712fa99 100644 --- a/tests/parse_args.php +++ b/tests/parse_args.php @@ -13,8 +13,10 @@ * @param int SSLVERSION * @param string PROXYSERVER * - * @copyright (C) 2007-2020 G. Giunta + * @copyright (C) 2007-2021 G. Giunta * @license code licensed under the BSD License: see file license.txt + * + * @todo rename both the class and the file. PhpXmlRpc_TestArgParser ? **/ class argParser { @@ -70,17 +72,18 @@ class argParser if (!isset($HTTPURI) || $HTTPURI == '') { // GUESTIMATE the url of local demo server - // play nice to php 3 and 4-5 in retrieving URL of server.php + // play nice to php 4 and 5 in retrieving URL of server.php /// @todo filter out query string from REQUEST_URI + /// @todo review this code... if (isset($REQUEST_URI)) { $HTTPURI = str_replace('/tests/testsuite.php', '/demo/server/server.php', $REQUEST_URI); $HTTPURI = str_replace('/testsuite.php', '/server.php', $HTTPURI); - $HTTPURI = str_replace('/tests/benchmark.php', '/demo/server/server.php', $HTTPURI); + $HTTPURI = str_replace('/extras/benchmark.php', '/demo/server/server.php', $HTTPURI); $HTTPURI = str_replace('/benchmark.php', '/server.php', $HTTPURI); } elseif (isset($_SERVER['PHP_SELF']) && isset($_SERVER['REQUEST_METHOD'])) { $HTTPURI = str_replace('/tests/testsuite.php', '/demo/server/server.php', $_SERVER['PHP_SELF']); $HTTPURI = str_replace('/testsuite.php', '/server.php', $HTTPURI); - $HTTPURI = str_replace('/tests/benchmark.php', '/demo/server/server.php', $HTTPURI); + $HTTPURI = str_replace('/extras/benchmark.php', '/demo/server/server.php', $HTTPURI); $HTTPURI = str_replace('/benchmark.php', '/server.php', $HTTPURI); } else { $HTTPURI = '/demo/server/server.php';