fix test
[m6w6/ext-http] / tests / client022.phpt
index 255de083bb3522a2df2751795c2e5943963802dd..a59971ccbcaccb7b99bdac8e83ece4c51ede3cbd 100644 (file)
@@ -21,7 +21,9 @@ nghttpd(function($port) {
                        "cainfo" => __DIR__."/helper/http2.crt",
                ]
        ]);
-       $client->enqueue(new http\Client\Request("GET", "https://localhost:$port"));
+       
+       $request = new http\Client\Request("GET", "https://localhost:$port");
+       $client->enqueue($request);
        echo $client->send()->getResponse();
 });