X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvrequestheader001.phpt;fp=tests%2Fenvrequestheader001.phpt;h=bfc9ccbd3db4c81e9f36c3af4b92e23e0826cd3e;hp=5ec5eb7373e4a5670c0091274038dbfad4247996;hb=9b849ab80754093c442139fb7037da9ec1aa3d90;hpb=70c87a329bd8a8128cdd2da1f7a8aa1e069e52b8 diff --git a/tests/envrequestheader001.phpt b/tests/envrequestheader001.phpt index 5ec5eb7..bfc9ccb 100644 --- a/tests/envrequestheader001.phpt +++ b/tests/envrequestheader001.phpt @@ -13,19 +13,21 @@ HTTP_ACCEPT=*/* var_dump(http\Env::getRequestHeader("nono")); var_dump(http\Env::getRequestHeader("Host")); var_dump(http\Env::getRequestHeader("content-type")); -var_dump(http\Env::getRequestHeader()); +$hdr = http\Env::getRequestHeader(); +ksort($hdr); +var_dump($hdr); ?> --EXPECTF-- NULL string(%d) "foo.bar" string(%d) "application/x-www-form-urlencoded" array(4) { - ["Host"]=> - string(7) "foo.bar" ["Accept"]=> string(3) "*/*" ["Content-Length"]=> string(1) "3" ["Content-Type"]=> string(33) "application/x-www-form-urlencoded" + ["Host"]=> + string(7) "foo.bar" }