X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient002.phpt;h=aeb2d8ac7041e888475178b190db8175823f63b5;hp=44ff3d1b92e4ab0f13dc520b3865d18df223bc84;hb=caac37f4457b7cc565f111bac14b1ce3ac379fab;hpb=87db9817d428282792c8146d9c2ae9748ebf6f1e 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(); + } +}); ?>