summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUrban Müller2015-08-10 16:06:24 +0200
committerUrban Müller2015-08-10 16:06:24 +0200
commitb26fcf8a18d32a49728516d4cdcb41c4f2ae8c93 (patch)
treeb4ad87b615558cb2460a45df872787200fe7e741 /tests
parent28ddc800b720c62fe2acc12e2bce88c0b4efaad8 (diff)
downloaditools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.tar.gz
itools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.tar.bz2
itools-b26fcf8a18d32a49728516d4cdcb41c4f2ae8c93.zip
php 5.3 compatibility
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_url.t2
-rwxr-xr-xtests/it_url_slow.t2
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'
)
);