summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNathan Gass2014-02-19 14:23:20 +0100
committerNathan Gass2014-02-19 14:23:20 +0100
commit723d9d7382e37cac06d9c1ebc00ded066ee0810b (patch)
tree6fe35c8feb6b78f9d5e8863980662ce8ca53acda /tests
parent98d31bf3d260c1d0aebe88cb35404a0338fe144f (diff)
downloaditools-723d9d7382e37cac06d9c1ebc00ded066ee0810b.tar.gz
itools-723d9d7382e37cac06d9c1ebc00ded066ee0810b.tar.bz2
itools-723d9d7382e37cac06d9c1ebc00ded066ee0810b.zip
implement and test argument maxlength (for crawler)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_url.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/it_url.t b/tests/it_url.t
index 6ece8d8..b3222f7 100755
--- a/tests/it_url.t
+++ b/tests/it_url.t
@@ -137,6 +137,22 @@ handle_server(
handle_server(
is(
+ it_url::get(array('url' => 'http://localhost:8000/', 'maxlength' => 100)),
+ "Testserver root output",
+ 'it_url::get() static call with port and maxlength',
+ )
+);
+
+handle_server(
+ is(
+ it_url::get(array('url' => 'http://localhost:8000/', 'maxlength' => 5)),
+ false,
+ 'it_url::get() static call with port and too small maxlength',
+ )
+);
+
+handle_server(
+ is(
it_url::get('http://localhost:8000/temp_redirect'),
"Testserver output after temporary redirect",
'it_url::get() follows temproary redirect',