X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Frequest_gzip.phpt;h=81f9bc4e66a2f24cbc24f92b71eddb8fa5830eff;hp=c947f62d7cf97b86482cad1efb7ae5fb20449559;hb=99b27b9e44043e5ff1bd53f2a1e3b007cfd16a42;hpb=33b7c5dcd9cffebb8486cb57e04958e34bbfe662 diff --git a/tests/request_gzip.phpt b/tests/request_gzip.phpt index c947f62..81f9bc4 100644 --- a/tests/request_gzip.phpt +++ b/tests/request_gzip.phpt @@ -10,12 +10,12 @@ skipif(!http_support(HTTP_SUPPORT_REQUESTS), 'need curl support'); true)))); +var_dump(http_parse_message(http_get('http://dev.iworks.at/ext-http/.print_request.php?gzip=1', array('compress' => true)))); echo "Done\n"; --EXPECTF-- -%sTEST -object(stdClass)#%d (%d) { +%aTEST +object(stdClass)%a { ["type"]=> int(2) ["httpVersion"]=> @@ -26,24 +26,23 @@ object(stdClass)#%d (%d) { string(2) "OK" ["headers"]=> array(8) { - %s + %a ["Vary"]=> string(15) "Accept-Encoding" ["Content-Length"]=> - string(2) "27" + string(2) "26" ["Content-Type"]=> string(9) "text/html" ["X-Original-Content-Encoding"]=> string(4) "gzip" ["X-Original-Content-Length"]=> - string(2) "52" + string(2) "51" } ["body"]=> - string(27) "Array + string(26) "Array ( [gzip] => 1 ) - " ["parentMessage"]=> NULL