From ec2b0d1c3ad2b285adeea8bbb7e40878d82b4f98 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Mon, 15 Oct 2012 16:57:11 +0000 Subject: add more it_url::get tests (some todo) --- tests/it_url.testserver.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/it_url.testserver.php') diff --git a/tests/it_url.testserver.php b/tests/it_url.testserver.php index 12ce892..2d10052 100644 --- a/tests/it_url.testserver.php +++ b/tests/it_url.testserver.php @@ -22,7 +22,18 @@ switch ($_SERVER['PHP_SELF']) it_url::redirect(U("redirect_loop", array('num' => $_REQUEST['num'] - 1))); break; + case "/nohost_redirect": + header('Location: /redirect_target?type=nohost', true, 301); + exit; + + case "/relative_redirect": + header('Location: ../redirect_target?type=relative', true, 301); + exit; + case "/redirect_target": echo 'Testserver output after ' . $_REQUEST['type'] . ' redirect'; break; + + default: + fwrite($stderr, "Unknown path '$_SERVER[PHP_SELF]' not handled!\n"); } -- cgit v1.2.3