X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclientresponse001.phpt;h=85f686103ed68764b637f87cb53457e5b908fa1a;hp=705ee2e3e173ef83c477ba260a67ed173280a851;hb=cbfdc466d8a364445ba3389e876b7c7e7f0189b2;hpb=95c6c900d04096d332c422e3f597186b7184c5ab diff --git a/tests/clientresponse001.phpt b/tests/clientresponse001.phpt index 705ee2e..85f6861 100644 --- a/tests/clientresponse001.phpt +++ b/tests/clientresponse001.phpt @@ -3,21 +3,25 @@ client response cookie --SKIPIF-- --FILE-- enqueue($request)->send()->getResponse()->getCookies(0, array("comment")) as $cookies) { - var_dump($cookies->toArray()); +server("cookie1.inc", function($port) { + $request = new http\Client\Request("GET", "http://localhost:$port"); + + foreach (http\Client::getAvailableDrivers() as $driver) { + $client = new http\Client($driver); + foreach($client->enqueue($request)->send()->getResponse()->getCookies(0, array("comment")) as $cookies) { + var_dump($cookies->toArray()); + } } -} +}); ?> Done --EXPECTREGEX--