Merge branch 'master' into phpng
[m6w6/ext-http] / tests / client003.phpt
1 --TEST--
2 client once & wait
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_online_test();
7 ?>
8 --FILE--
9 <?php
10 echo "Test\n";
11
12 $request = new http\Client\Request("GET", "http://www.example.org/");
13
14 foreach (http\Client::getAvailableDrivers() as $driver) {
15 $client = new http\Client($driver);
16 $client->enqueue($request);
17
18 while ($client->once()) {
19 $client->wait(.1);
20 }
21
22 if (!$client->getResponse()) {
23 var_dump($client);
24 }
25 }
26 ?>
27 Done
28 --EXPECT--
29 Test
30 Done