summaryrefslogtreecommitdiff
path: root/tests/it_url.t
diff options
context:
space:
mode:
authorNathan Gass2011-05-24 13:07:23 +0000
committerNathan Gass2011-05-24 13:07:23 +0000
commita8a336daf2755274f430c88e67d6d2c396706f4c (patch)
tree0754a5d02e17c7e2c7efc99f72b8f8b03000d590 /tests/it_url.t
parent90bbfd2be4fba89e5016a290a5f433aa8204d793 (diff)
downloaditools-a8a336daf2755274f430c88e67d6d2c396706f4c.tar.gz
itools-a8a336daf2755274f430c88e67d6d2c396706f4c.tar.bz2
itools-a8a336daf2755274f430c88e67d6d2c396706f4c.zip
add it_url::get_multi to fetch multiple urls in parallel
Diffstat (limited to 'tests/it_url.t')
-rwxr-xr-xtests/it_url.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/it_url.t b/tests/it_url.t
index 4c59004..e8507aa 100755
--- a/tests/it_url.t
+++ b/tests/it_url.t
@@ -126,4 +126,10 @@ is(
'</html>',
'it_url::get() static call'
);
+
+$pages = it_url::get_multi('urls' => array('a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/'));
+ok(it::match('</html>', $pages['a']), 'it_url::get_multi got first url');
+ok(it::match('</html>', $pages['b']), 'it_url::get_multi got second url');
+is(count($pages), 2, 'it_url::get_multi no additional array elements');
+
?>