X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient015.phpt;h=0ab520cb75fb73b250535d1a80a17111517fcf93;hp=60d31323efc350230b7dc341ea2f866eab520470;hb=b6f8b5f25a50022dd7c67acf8f7c7ddc13e9ffc8;hpb=90b581e9c564acde783926e412d7c5d737c4cbe4 diff --git a/tests/client015.phpt b/tests/client015.phpt index 60d3132..0ab520c 100644 --- a/tests/client015.phpt +++ b/tests/client015.phpt @@ -3,13 +3,6 @@ http client event base --SKIPIF-- enableEvents()) - throw new Exception("need events support"); -} catch (Exception $e) { - die("skip ".$e->getMessage()); -} skip_online_test(); ?> --FILE-- @@ -19,8 +12,8 @@ echo "Test\n"; $client1 = new http\Client; $client2 = new http\Client; -$client1->enableEvents(); -$client2->enableEvents(); +$client1->configure(["use_eventloop" => true]); +$client2->configure(["use_eventloop" => true]); $client1->enqueue(new http\Client\Request("GET", "http://www.google.ca/")); $client2->enqueue(new http\Client\Request("GET", "http://www.google.co.uk/"));