diff options
| author | Nathan Gass | 2011-05-24 13:07:23 +0000 | 
|---|---|---|
| committer | Nathan Gass | 2011-05-24 13:07:23 +0000 | 
| commit | a8a336daf2755274f430c88e67d6d2c396706f4c (patch) | |
| tree | 0754a5d02e17c7e2c7efc99f72b8f8b03000d590 /tests | |
| parent | 90bbfd2be4fba89e5016a290a5f433aa8204d793 (diff) | |
| download | itools-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')
| -rwxr-xr-x | tests/it_url.t | 6 | 
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'); +  ?> |