X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fclient030.phpt;fp=tests%2Fclient030.phpt;h=582087f93f3fa93aadb0c483ffd3e69a61b0f6bb;hb=e5df73ae2e31faa4e5a7de57409734f4cecd4c4a;hp=0000000000000000000000000000000000000000;hpb=78b58967b4befb4118572312f82f63d77e102b41;p=m6w6%2Fext-http diff --git a/tests/client030.phpt b/tests/client030.phpt new file mode 100644 index 0000000..582087f --- /dev/null +++ b/tests/client030.phpt @@ -0,0 +1,35 @@ +--TEST-- +client eventloop recursion +--SKIPIF-- + +--FILE-- +once(); + } +} +server("proxy.inc", function($port) { + $client = new http\Client; + $client->configure([ + "use_eventloop" => true, + ]); + $client->attach(new test); + $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/"), function($r) { + var_dump($r->getResponseCode()); + }); + $client->send(); +}); + +?> +===DONE=== +--EXPECTF-- +Test +int(200) +===DONE=== \ No newline at end of file