X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient002.phpt;fp=tests%2Fclient002.phpt;h=aeb2d8ac7041e888475178b190db8175823f63b5;hp=89d4d658b8a58ee2d5cfcf94cf72ca4b8c319bbe;hb=e867316f1364f589eec67cc684703c874984430b;hpb=baff99d75b56868714f7f2ed1972b3baceb72014 diff --git a/tests/client002.phpt b/tests/client002.phpt index 89d4d65..aeb2d8a 100644 --- a/tests/client002.phpt +++ b/tests/client002.phpt @@ -3,10 +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(); + } +}); ?>