extesion deps
[m6w6/ext-http] / tests / factory.phpt
index 6a629768102506962d894628880f0862f436d554..64969132757aa4be3b54f3aaddaa5e6b2cd0d76f 100644 (file)
@@ -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";
        }