fix for changed shutdown order in PHP-7.4
[m6w6/ext-http] / tests / client017.phpt
1 --TEST--
2 client request gzip
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_client_test();
7 ?>
8 --FILE--
9 <?php
10
11 include "helper/server.inc";
12
13 echo "Test\n";
14
15 server("env.inc", function($port) {
16 $request = new http\Client\Request("GET", "http://localhost:$port/");
17
18 $client = new http\Client;
19 $client->setOptions(array("compress" => true));
20
21 $client->enqueue($request);
22 $client->send();
23
24 echo $client->getResponse();
25 });
26 ?>
27 ===DONE===
28 --EXPECTF--
29 Test
30 HTTP/1.1 200 OK
31 Accept-Ranges: bytes
32 X-Request-Content-Length: 0
33 Vary: Accept-Encoding
34 Etag: "%s"
35 X-Original-Transfer-Encoding: chunked
36 X-Original-Content-Encoding: deflate
37 ===DONE===
38