From a64f986ff422c396288982304aba5f9b99a1a6d9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 5 Feb 2015 16:26:43 +0100 Subject: [PATCH] add test --- tests/client017.phpt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/client017.phpt 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 -- 2.30.2