X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ffactory.phpt;h=d80bc82ef43afaaa2cf0d5a78ab38f80114d1c4c;hb=0e89d506db19cab9581a7317e0494001941a8c70;hp=f28eda77c498070fdea5bb8539b5ca3bfc821866;hpb=fa54d3dd8c0f101c9f8619d59eaf1940c311e7e5;p=m6w6%2Fext-http diff --git a/tests/factory.phpt b/tests/factory.phpt index f28eda7..d80bc82 100644 --- a/tests/factory.phpt +++ b/tests/factory.phpt @@ -3,17 +3,17 @@ factory --SKIPIF-- --FILE-- createRequest(); $p = $f->createPool(); $s = $f->createDataShare(); -var_dump(array_map("get_class", array($f,$r,$p,$s))); +var_dump( + array_map("get_class", array($f,$r,$p,$s)), + $f->getDriver() +); + +foreach (array("Request", "Pool", "DataShare") as $type) { + try { + var_dump((new http\Request\Factory(array("driver" => "nonexistant")))->{"create$type"}()); + } catch (Exception $e) { + echo $e->getMessage(), "\n"; + } +} echo "Done\n"; ?> @@ -44,4 +55,8 @@ array(4) { [3]=> string(7) "MyShare" } +string(4) "curl" +requests are not supported by this driver +pools are not supported by this driver +datashares are not supported by this driver Done