X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient027.phpt;h=b87fa653dd108aba9f320e10e185950f72cc08e7;hb=0618dea119fb3782c2e254060ceea01eaec03aa3;hp=5d81194c0aa323bdc1f746a05bf625d1594dd1bb;hpb=53a654ed6e112b2766b41c01a1c2bb79373c59e4;p=m6w6%2Fext-http diff --git a/tests/client027.phpt b/tests/client027.phpt index 5d81194..b87fa65 100644 --- a/tests/client027.phpt +++ b/tests/client027.phpt @@ -15,20 +15,22 @@ echo "Test\n"; server("cookie.inc", function($port) { $client = new http\Client(null, "cookies"); - $client->configure(["pipelining" => false]); + $client->configure(array("pipelining" => false, "share_cookies" => false)); + $request = new http\Client\Request("GET", "http://localhost:$port?r1"); $client->enqueue($request); $client->send(); - while (($r = $client->getResponse())) { - dump_headers(null, $r->getHeaders()); - } + dump_responses($client, ["counter" => 1]); + $client->requeue($request); + $client->send(); + dump_responses($client, ["counter" => 2]); + $client->dequeue($request); + $request = new http\Client\Request("GET", "http://localhost:$port?r2"); $client->enqueue($request); $client->send(); - while (($r = $client->getResponse())) { - dump_headers(null, $r->getHeaders()); - } + dump_responses($client, ["counter" => 1]); }); ?> @@ -44,7 +46,7 @@ Set-Cookie: counter=2; X-Original-Transfer-Encoding: chunked Etag: "" -Set-Cookie: counter=2; +Set-Cookie: counter=1; X-Original-Transfer-Encoding: chunked ===DONE===