X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Furlparser008.phpt;h=9646fa0d67aae97b4c56020cdc52d983270878c1;hp=98382f43c4cb97823923e0555bd2ccb7d3ab7750;hb=b54d9ed0b0cd930f76754fe281e66f36a953085b;hpb=a4114b0ea5757190fdd7218dbf23588b6ae6e9a8 diff --git a/tests/urlparser008.phpt b/tests/urlparser008.phpt index 98382f4..9646fa0 100644 --- a/tests/urlparser008.phpt +++ b/tests/urlparser008.phpt @@ -18,7 +18,7 @@ $urls = array( foreach ($urls as $url) { try { printf("\n%s\n", $url); - var_dump(http\Url::parse($url)); + var_dump(new http\Url($url, null, 0)); } catch (Exception $e) { echo $e->getMessage(),"\n"; } @@ -29,10 +29,10 @@ DONE Test s://[a:80 -http\Url::parse(): Failed to parse hostinfo; expected ']' +http\Url::__construct(): Failed to parse hostinfo; expected ']' s://[0] -http\Url::parse(): Failed to parse hostinfo; unexpected '[' +http\Url::__construct(): Failed to parse hostinfo; unexpected '[' s://[::1]:80 object(http\Url)#%d (8) {