X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient002.phpt;h=aeb2d8ac7041e888475178b190db8175823f63b5;hp=44ff3d1b92e4ab0f13dc520b3865d18df223bc84;hb=333ffe4376d543204387d3cbd8e17f4a675cf3e5;hpb=c1f2ac7da167dec92df81ad33de65b953ccd043d diff --git a/tests/client002.phpt b/tests/client002.phpt index 44ff3d1..aeb2d8a 100644 --- a/tests/client002.phpt +++ b/tests/client002.phpt @@ -3,9 +3,13 @@ client observer --SKIPIF-- --FILE-- attach($observer); - $client->enqueue($request); - $client->send(); -} +server("proxy.inc", function($port, $stdin, $stdout, $stderr) { + foreach (http\Client::getAvailableDrivers() as $driver) { + $client = new http\Client($driver); + $client->attach(new Observer); + $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/")); + $client->send(); + } +}); ?>