X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Furlparser008.phpt;h=ce7a8cc8facd8da281997f3780d0af542b61d16e;hp=98382f43c4cb97823923e0555bd2ccb7d3ab7750;hb=c17987e25b6558974e60d20c4c10be9fd5221094;hpb=4745cd2cc0c3bd610fd2fc1ef120f37ab4111d5b diff --git a/tests/urlparser008.phpt b/tests/urlparser008.phpt index 98382f4..ce7a8cc 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 ']' at pos 5 in '[a:80' s://[0] -http\Url::parse(): Failed to parse hostinfo; unexpected '[' +http\Url::__construct(): Failed to parse hostinfo; unexpected '[' at pos 0 in '[0]' s://[::1]:80 object(http\Url)#%d (8) {