-var_dump(array_map("get_class", array($f,$r,$p,$s)));
+$r->setRequest(new http\Client\Request("GET", "http://localhost/"));
+$x = $f->createPool($r);
+$y = $f->createDatashare($r);
+
+var_dump(
+ array_map("get_class", array($f,$r,$p,$s,$x,$y)),
+ $f->getDriver()
+);
+
+foreach (array("Client", "Pool", "DataShare") as $type) {
+ try {
+ $f = new http\Client\Factory(array("driver" => "nonexistant"));
+ var_dump($f->{"create$type"}());
+ } catch (Exception $e) {
+ echo $e->getMessage(), "\n";
+ }
+}