관리-도구
편집 파일: client003.phpt
--TEST-- client once & wait --SKIPIF-- <?php include "skipif.inc"; skip_online_test(); skip_client_test(); ?> --FILE-- <?php include "helper/server.inc"; echo "Test\n"; server("proxy.inc", function($port) { $request = new http\Client\Request("GET", "http://localhost:$port/"); foreach (http\Client::getAvailableDrivers() as $driver) { $client = new http\Client($driver); $client->enqueue($request); while ($client->once()) { $client->wait(.1); } if (!$client->getResponse()) { var_dump($client); } } }); ?> Done --EXPECT-- Test Done