From: Michael Wallner Date: Thu, 5 Feb 2015 15:26:43 +0000 (+0100) Subject: add test X-Git-Tag: RELEASE_2_3_0_RC1~54 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=a64f986ff422c396288982304aba5f9b99a1a6d9 add test --- diff --git a/tests/client017.phpt b/tests/client017.phpt new file mode 100644 index 0000000..ea54146 --- /dev/null +++ b/tests/client017.phpt @@ -0,0 +1,33 @@ +--TEST-- +client request gzip +--SKIPIF-- + +--FILE-- +setOptions(["compress" => true]); + +$client->enqueue(new http\Client\Request("GET", "http://dev.iworks.at/ext-http/.print_request.php")); +$client->send(); + +echo $client->getResponse(); + +?> +===DONE=== +--EXPECTF-- +Test +HTTP/1.1 200 OK +Vary: Accept-Encoding +Content-Type: text/html +Date: %s +Server: %s +X-Original-Transfer-Encoding: chunked +X-Original-Content-Encoding: gzip +===DONE=== \ No newline at end of file