X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ffactory.phpt;h=64969132757aa4be3b54f3aaddaa5e6b2cd0d76f;hb=b4920d7ad19ae6704e10cb29fca652b47e1bc61f;hp=6a629768102506962d894628880f0862f436d554;hpb=c0d96fe2c0d156412bcb22bf5b9f5e9ed0046c9c;p=m6w6%2Fext-http diff --git a/tests/factory.phpt b/tests/factory.phpt index 6a62976..6496913 100644 --- a/tests/factory.phpt +++ b/tests/factory.phpt @@ -39,7 +39,8 @@ var_dump( foreach (array("Client", "Pool", "DataShare") as $type) { try { - var_dump((new http\Client\Factory(array("driver" => "nonexistant")))->{"create$type"}()); + $f = new http\Client\Factory(array("driver" => "nonexistant")); + var_dump($f->{"create$type"}()); } catch (Exception $e) { echo $e->getMessage(), "\n"; }