From 723d9d7382e37cac06d9c1ebc00ded066ee0810b Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 19 Feb 2014 14:23:20 +0100 Subject: implement and test argument maxlength (for crawler) --- tests/it_url.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') 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 @@ -135,6 +135,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'), -- cgit v1.2.3