unfold url tests
[m6w6/ext-http] / tests / url005.phpt
diff --git a/tests/url005.phpt b/tests/url005.phpt
new file mode 100644 (file)
index 0000000..f9b6965
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+url as array
+--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);
+$url2 = new http\Url($url->toArray());
+var_dump($url->toArray() === $url2->toArray());
+?>
+DONE
+--EXPECT--
+Test
+bool(true)
+DONE