X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient008.phpt;h=f8b8774eb8edc1c7511b8c7961438470fd9d5a88;hb=0ba32eeed8cf2e610619993b52fbf0dfba61a62d;hp=31584d30c548e36372ef2695ec01c9607a90f6a8;hpb=eaa046dc3e6496e523a17c3b786ef27067b9795c;p=m6w6%2Fext-http diff --git a/tests/client008.phpt b/tests/client008.phpt index 31584d3..f8b8774 100644 --- a/tests/client008.phpt +++ b/tests/client008.phpt @@ -3,29 +3,35 @@ client features --SKIPIF-- --FILE-- enablePipelining(true); - $client->enableEvents(true); +server("pipeline.inc", function($port, $stdin) { + fputs($stdin, "2\n"); + $request = new http\Client\Request("GET", "http://localhost:$port"); + + $client = new http\Client(); + $client->configure(["pipelining" => true, "use_eventloop" => true]); + $client->enqueue($request); + $client->send(); + $client->enqueue(clone $request); $client->enqueue(clone $request); - + $client->send(); - + while ($client->getResponse()) { echo "R\n"; } -} +}); ?> Done