Config.w32 chack for both instances of event.h
[m6w6/ext-http] / tests / urlparser008.phpt
index 98382f43c4cb97823923e0555bd2ccb7d3ab7750..ce7a8cc8facd8da281997f3780d0af542b61d16e 100644 (file)
@@ -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) {