* renaming tests
[m6w6/ext-http] / tests / redirect_003.phpt
diff --git a/tests/redirect_003.phpt b/tests/redirect_003.phpt
new file mode 100644 (file)
index 0000000..58ef385
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+http_redirect() permanent
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--FILE--
+<?php
+http_redirect('redirect', null, false, true);
+?>
+--EXPECTF--
+Status: 301
+Content-type: text/html
+X-Powered-By: PHP/%s
+Location: http://localhost/redirect
+
+Redirecting to <a href="http://localhost/redirect">http://localhost/redirect</a>.
+