관리-도구
편집 파일: client004.phpt
--TEST-- client reset --SKIPIF-- <?php include "skipif.inc"; 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)->send(); if (!($client->getResponse($request) instanceof http\Client\Response)) { var_dump($client); } try { $client->enqueue($request); } catch (Exception $e) { echo $e->getMessage(),"\n"; } $client->reset(); if (($response = $client->getResponse())) { var_dump($response); } $client->enqueue($request); } }); ?> Done --EXPECTREGEX-- Test (?:Failed to enqueue request; request already in queue )+Done