X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclientresponse001.phpt;h=85f686103ed68764b637f87cb53457e5b908fa1a;hp=270512b358ab926c94fd2edda42d17390aa6048a;hb=cbfdc466d8a364445ba3389e876b7c7e7f0189b2;hpb=74bfc0cd7185a668af2e61c9d2a6670814825517 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--