X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclientresponse001.phpt;h=85f686103ed68764b637f87cb53457e5b908fa1a;hp=270512b358ab926c94fd2edda42d17390aa6048a;hb=92ebc45a45d1cd712ea9d8d9fcf8b64b115939df;hpb=d739650057f4ca2fc67f1ae2bfd1d24c3f2f9e7b diff --git a/tests/clientresponse001.phpt b/tests/clientresponse001.phpt index 270512b..85f6861 100644 --- a/tests/clientresponse001.phpt +++ b/tests/clientresponse001.phpt @@ -3,20 +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--