X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fgh-issue12.phpt;h=8b2e3787ef50769a9e98db89c1478e693371def3;hb=b3831bc5f19cf32880ea19341c3527f0e9553517;hp=07215863ef6768c5d2de2a1668b4f7f5355ae630;hpb=edf77fd524b1303732dcf24e53f375789631d143;p=m6w6%2Fext-http diff --git a/tests/gh-issue12.phpt b/tests/gh-issue12.phpt index 0721586..8b2e378 100644 --- a/tests/gh-issue12.phpt +++ b/tests/gh-issue12.phpt @@ -14,7 +14,8 @@ $urls = array( foreach ($urls as $url) { try { - (new http\Client\Request)->setRequestUrl($url); + $c = new http\Client\Request; + $c->setRequestUrl($url); printf("OK: %s\n", $url); } catch (Exception $e) { printf("%s\n", $e->getMessage());