add test
authorMichael Wallner <mike@php.net>
Thu, 5 Feb 2015 15:26:43 +0000 (16:26 +0100)
committerMichael Wallner <mike@php.net>
Thu, 5 Feb 2015 15:26:43 +0000 (16:26 +0100)
tests/client017.phpt [new file with mode: 0644]

diff --git a/tests/client017.phpt b/tests/client017.phpt
new file mode 100644 (file)
index 0000000..ea54146
--- /dev/null
@@ -0,0 +1,33 @@
+--TEST--
+client request gzip
+--SKIPIF--
+<?php 
+include "skipif.inc";
+skip_online_test();
+skip_client_test();
+?>
+--FILE--
+<?php 
+
+echo "Test\n";
+
+$client = new http\Client;
+$client->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