X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient028.phpt;h=280c3059d36aa62948708caf4fb501d1e7862548;hp=4678bcca8b3f4069b7c7a1861e9dc46d3aed00f4;hb=b6bd51c63e78ca0212228a7002a93fb67dfede96;hpb=92d8f06029623d719357ad7d08d42909996768f9 diff --git a/tests/client028.phpt b/tests/client028.phpt index 4678bcc..280c305 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()); });