* renaming tests
[m6w6/ext-http] / tests / abs_uri_002.phpt
diff --git a/tests/abs_uri_002.phpt b/tests/abs_uri_002.phpt
new file mode 100644 (file)
index 0000000..39245d1
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+http_absolute_uri() with proto
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--FILE--
+<?php
+echo http_absolute_uri('sec', 'https'), "\n";
+echo http_absolute_uri('/pub', 'ftp'), "\n";
+echo http_absolute_uri('/', null), "\n";
+?>
+--EXPECTF--
+Content-type: text/html
+X-Powered-By: PHP/%s
+
+https://localhost/sec
+ftp://localhost/pub
+http://localhost/