X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvrequestheader001.phpt;h=bfc9ccbd3db4c81e9f36c3af4b92e23e0826cd3e;hp=5ec5eb7373e4a5670c0091274038dbfad4247996;hb=cc0b99e66062267073dff424fb9522f9c6933e28;hpb=b853770adabaeaea590da340d9c54a940d5ea1dd 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" }