From a8a336daf2755274f430c88e67d6d2c396706f4c Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 24 May 2011 13:07:23 +0000 Subject: add it_url::get_multi to fetch multiple urls in parallel --- tests/it_url.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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( '', 'it_url::get() static call' ); + +$pages = it_url::get_multi('urls' => array('a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/')); +ok(it::match('', $pages['a']), 'it_url::get_multi got first url'); +ok(it::match('', $pages['b']), 'it_url::get_multi got second url'); +is(count($pages), 2, 'it_url::get_multi no additional array elements'); + ?> -- cgit v1.2.3