From 9b849ab80754093c442139fb7037da9ec1aa3d90 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Sat, 23 Nov 2013 10:15:56 +0000 Subject: [PATCH] fixed some tests for windows --- tests/envrequestbody003.phpt | 2 +- tests/envrequestheader001.phpt | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/envrequestbody003.phpt b/tests/envrequestbody003.phpt index 1aeae79..c2bde83 100644 --- a/tests/envrequestbody003.phpt +++ b/tests/envrequestbody003.phpt @@ -38,7 +38,7 @@ array(1) { ["type"]=> string(0) "" ["tmp_name"]=> - string(14) "%s" + string(%d) "%s" ["error"]=> int(0) ["size"]=> 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" } -- 2.30.2