unfold url tests
[m6w6/ext-http] / tests / url004.phpt
diff --git a/tests/url004.phpt b/tests/url004.phpt
new file mode 100644 (file)
index 0000000..c3055da
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+url as string
+--SKIPIF--
+<?php
+include "skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+
+$u = "http://user:pass@www.example.com:8080/path/file.ext".
+                       "?foo=bar&more[]=1&more[]=2#hash";
+
+$url = new http\Url($u);
+var_dump((string) $url == (string) new http\Url((string) $url));
+
+?>
+DONE
+--EXPECT--
+Test
+bool(true)
+DONE