X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Frequest_gzip.phpt;fp=tests%2Frequest_gzip.phpt;h=7a9f02725922bc79891da22eed47b3918fe42a1a;hb=9d4113f62a7a8fe2fe3879b94a3712d11cec8726;hp=0000000000000000000000000000000000000000;hpb=b5ea2548f9717e8d0f26de29bdce6881623b67a3;p=m6w6%2Fext-http diff --git a/tests/request_gzip.phpt b/tests/request_gzip.phpt new file mode 100644 index 0000000..7a9f027 --- /dev/null +++ b/tests/request_gzip.phpt @@ -0,0 +1,45 @@ +--TEST-- +GZIP request +--SKIPIF-- + +--FILE-- + true)))); + +echo "Done\n"; +--EXPECTF-- +%sTEST +object(stdClass)#%d (%d) { + ["type"]=> + int(2) + ["httpVersion"]=> + float(1.1) + ["responseCode"]=> + int(200) + ["responseStatus"]=> + string(2) "OK" + ["headers"]=> + array(6) { + %s + ["Vary"]=> + string(15) "Accept-Encoding" + ["Content-Type"]=> + string(9) "text/html" + ["Content-Length"]=> + string(2) "27" + } + ["body"]=> + string(27) "Array +( + [gzip] => 1 +) + +" + ["parentMessage"]=> + NULL +}Done