X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=tests%2Fclient008.phpt;h=41c3e681b9b5bc1a221b9ea46d677a11770fcaa1;hb=8a3ddf26349337c2c42dc2716bb4b3e93bded96c;hp=2585f235d0b3e07456aee66fef8315ee12e156f7;hpb=0fa4750d5cfe59f7471f35c9e026af7d771eace8;p=m6w6%2Fext-http diff --git a/tests/client008.phpt b/tests/client008.phpt index 2585f23..41c3e68 100644 --- a/tests/client008.phpt +++ b/tests/client008.phpt @@ -3,28 +3,35 @@ client features --SKIPIF-- --FILE-- configure(["pipelining" => true, "use_eventloop" => true]); +echo "Test\n"; + +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