X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fpersistenthandles001.phpt;h=18bce8a6b9b87bfc3400eafa75bd10b36502df09;hb=34c8af32031e2e847b4919402373ad70fc28a863;hp=01f5069bea86b75e511a9aaa3f09d3e7838b89f5;hpb=efdbb46bf78df0d34936c536bd78b05abadd3a0d;p=m6w6%2Fext-http diff --git a/tests/persistenthandles001.phpt b/tests/persistenthandles001.phpt index 01f5069..18bce8a 100644 --- a/tests/persistenthandles001.phpt +++ b/tests/persistenthandles001.phpt @@ -4,12 +4,12 @@ persistent handles --FILE-- "foo"))) - ->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at")) +$f = new http\Client\Factory(array("persistentHandleId" => "foo")); +$r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at")) ->setOptions(array("connecttimeout"=> 90, "timeout" =>300)) - ->send(null); -$r = (new http\Client\Factory(array("persistentHandleId" => "bar"))) - ->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at")) + ->send(null); +$f = new http\Client\Factory(array("persistentHandleId" => "bar")); +$r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at")) ->setOptions(array("connecttimeout"=> 90, "timeout" =>300)); var_dump(http\Env::statPersistentHandles());