projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
implement curl multi options through http\Client::configure()
[m6w6/ext-http]
/
tests
/
client015.phpt
diff --git
a/tests/client015.phpt
b/tests/client015.phpt
index 60d31323efc350230b7dc341ea2f866eab520470..0ab520cb75fb73b250535d1a80a17111517fcf93 100644
(file)
--- a/
tests/client015.phpt
+++ b/
tests/client015.phpt
@@
-3,13
+3,6
@@
http client event base
--SKIPIF--
<?php
include "skipif.inc";
--SKIPIF--
<?php
include "skipif.inc";
-try {
- $client = new http\Client;
- if (!$client->enableEvents())
- throw new Exception("need events support");
-} catch (Exception $e) {
- die("skip ".$e->getMessage());
-}
skip_online_test();
?>
--FILE--
skip_online_test();
?>
--FILE--
@@
-19,8
+12,8
@@
echo "Test\n";
$client1 = new http\Client;
$client2 = new http\Client;
$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/"));
$client1->enqueue(new http\Client\Request("GET", "http://www.google.ca/"));
$client2->enqueue(new http\Client\Request("GET", "http://www.google.co.uk/"));