diff options
author | Urban Müller | 2015-08-10 16:06:24 +0200 |
---|---|---|
committer | Urban Müller | 2015-08-10 16:06:24 +0200 |
commit | b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93 (patch) | |
tree | b4ad87b615558cb2460a45df872787200fe7e741 | |
parent | 28ddc800b720c62fe2acc12e2bce88c0b4efaad8 (diff) | |
download | itools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.tar.gz itools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.tar.bz2 itools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.zip |
php 5.3 compatibility
-rwxr-xr-x | tests/it_url.t | 2 | ||||
-rwxr-xr-x | tests/it_url_slow.t | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/it_url.t b/tests/it_url.t index 514593c..5cb2b29 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -231,7 +231,7 @@ handle_server( ) ); -$pages = it_url::get_multi('urls' => array('a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/')); +$pages = it_url::get_multi(array('urls' => array('a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/'))); ok(strpos($pages['a'], '</html>'), 'it_url::get_multi got first url'); # UTF8SAFE ok(strpos($pages['b'], '</html>'), 'it_url::get_multi got second url'); # UTF8SAFE is(count($pages), 2, 'it_url::get_multi no additional array elements'); diff --git a/tests/it_url_slow.t b/tests/it_url_slow.t index 1dc3d78..68d68c1 100755 --- a/tests/it_url_slow.t +++ b/tests/it_url_slow.t @@ -53,7 +53,7 @@ if (!$res || !$res2) handle_server( ok( - it_url::get(U('http://localhost:8000/repeat', 'string' => "abc", array('num' => 1024 * 1024))) == str_repeat("abc", 1024 * 1024), + it_url::get(U('http://localhost:8000/repeat', array('string' => "abc", 'num' => 1024 * 1024))) == str_repeat("abc", 1024 * 1024), 'it_url::get() handles large response' ) ); |