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