X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclientresponse002.phpt;h=def4b3f5082cb2efa4739127f25108ce65b3548d;hp=2379cc7e6ddf3e7717e373a1b365b9253dc79630;hb=refs%2Fheads%2Fmaster;hpb=d739650057f4ca2fc67f1ae2bfd1d24c3f2f9e7b diff --git a/tests/clientresponse002.phpt b/tests/clientresponse002.phpt index 2379cc7..def4b3f 100644 --- a/tests/clientresponse002.phpt +++ b/tests/clientresponse002.phpt @@ -3,20 +3,25 @@ client response cookies --SKIPIF-- --FILE-- enqueue($request)->send()->getResponse()->getCookies(0, array("comment")) as $cookies) { - var_dump($cookies->toArray()); +server("cookie2.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--