summaryrefslogtreecommitdiff
path: root/test/it_url.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it_url.t')
-rwxr-xr-xtest/it_url.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/it_url.t b/test/it_url.t
index eb36dd6..624b4bf 100755
--- a/test/it_url.t
+++ b/test/it_url.t
@@ -266,6 +266,19 @@ if (!ok(
))
diag($output);
+$output = handle_server(
+ is(
+ it_url::get(U('http://localhost:8000/empty')),
+ '',
+ 'it_url::get() explicit empty result'
+ )
+);
+if (!ok(
+ count(preg_grep('/^Got Request:/', $output)) == 1,
+ 'it_url::get() does not retry on explicity empty page'
+))
+ diag($output);
+
handle_server(
is(
it_url::get(U('http://localhost:8000/get_server_value', array('key' => 'HTTP_HOST'))),