projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix curl_multi with libevent2
[m6w6/ext-http]
/
tests
/
factory.phpt
diff --git
a/tests/factory.phpt
b/tests/factory.phpt
index 4267e3650308c63fa0e5623aa97ee5e6630f7a56..6a629768102506962d894628880f0862f436d554 100644
(file)
--- a/
tests/factory.phpt
+++ b/
tests/factory.phpt
@@
-28,8
+28,12
@@
$r = $f->createClient();
$p = $f->createPool();
$s = $f->createDataShare();
$p = $f->createPool();
$s = $f->createDataShare();
+$r->setRequest(new http\Client\Request("GET", "http://localhost/"));
+$x = $f->createPool($r);
+$y = $f->createDatashare($r);
+
var_dump(
var_dump(
- array_map("get_class", array($f,$r,$p,$s)),
+ array_map("get_class", array($f,$r,$p,$s
,$x,$y
)),
$f->getDriver()
);
$f->getDriver()
);
@@
-45,7
+49,7
@@
echo "Done\n";
?>
--EXPECTF--
Test
?>
--EXPECTF--
Test
-array(
4
) {
+array(
6
) {
[0]=>
string(9) "MyFactory"
[1]=>
[0]=>
string(9) "MyFactory"
[1]=>
@@
-54,6
+58,10
@@
array(4) {
string(6) "MyPool"
[3]=>
string(7) "MyShare"
string(6) "MyPool"
[3]=>
string(7) "MyShare"
+ [4]=>
+ string(6) "MyPool"
+ [5]=>
+ string(7) "MyShare"
}
string(4) "curl"
clients are not supported by this driver
}
string(4) "curl"
clients are not supported by this driver