X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ffactory.phpt;h=64969132757aa4be3b54f3aaddaa5e6b2cd0d76f;hb=d5de4f9eae86ae1dab0f8a906bf9543710ae124d;hp=6a629768102506962d894628880f0862f436d554;hpb=64722314d70dc547e477d87927c22b598aa463d0;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"; }