X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient028.phpt;h=232f56285d560d6290e3321d13df34044020f715;hp=27ab2b646f37703f78ba9ed375726aab7f3bf2b6;hb=faf7a7899fa8ffb24f8105a921f359d6b97ec34e;hpb=06e6ed638087fb1f8ee2a5c950c7bd71d4b12eef diff --git a/tests/client028.phpt b/tests/client028.phpt index 27ab2b6..232f562 100644 --- a/tests/client028.phpt +++ b/tests/client028.phpt @@ -13,19 +13,19 @@ class UserHandler implements http\Client\Curl\User { private $client; private $run; - private $fds = [ - "R" => [], - "W" => [] - ]; - private $R = []; - private $W = []; + private $fds = array( + "R" => array(), + "W" => array() + ); + private $R = array(); + private $W = array(); private $timeout = 1000; function __construct(http\Client $client) { $this->client = $client; } - function init(callable $run) { + function init($run) { $this->run = $run; } @@ -124,9 +124,9 @@ include "helper/server.inc"; server("proxy.inc", function($port) { $client = new http\Client; - $client->configure([ + $client->configure(array( "use_eventloop" => new UserHandler($client) - ]); + )); $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/"), function($r) { var_dump($r->getResponseCode()); });