summaryrefslogtreecommitdiff
path: root/tests/it_url.testserver.php
diff options
context:
space:
mode:
authorNathan Gass2012-10-15 17:46:19 +0000
committerNathan Gass2012-10-15 17:46:19 +0000
commit874e0c2a05d9ad38ee495301ca366b67d13d77dd (patch)
tree6891a9d494e7804c502aec1a90d2ac095204ebb8 /tests/it_url.testserver.php
parentec2b0d1c3ad2b285adeea8bbb7e40878d82b4f98 (diff)
downloaditools-874e0c2a05d9ad38ee495301ca366b67d13d77dd.tar.gz
itools-874e0c2a05d9ad38ee495301ca366b67d13d77dd.tar.bz2
itools-874e0c2a05d9ad38ee495301ca366b67d13d77dd.zip
add tests for it_url::get timeouts
Diffstat (limited to 'tests/it_url.testserver.php')
-rw-r--r--tests/it_url.testserver.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/it_url.testserver.php b/tests/it_url.testserver.php
index 2d10052..22dc14b 100644
--- a/tests/it_url.testserver.php
+++ b/tests/it_url.testserver.php
@@ -34,6 +34,23 @@ switch ($_SERVER['PHP_SELF'])
echo 'Testserver output after ' . $_REQUEST['type'] . ' redirect';
break;
+ case "/long_sleep":
+ sleep(6);
+ echo 'Testserver output after long sleep';
+ break;
+
+ case "/short_sleep":
+ sleep(4);
+ echo 'Testserver output after short sleep';
+ break;
+
+ case "/slow_response":
+ for ($i = 0; $i < 6; $i++) {
+ sleep(1);
+ echo "Testserver slow output $i\n";
+ }
+ break;
+
default:
fwrite($stderr, "Unknown path '$_SERVER[PHP_SELF]' not handled!\n");
}