summaryrefslogtreecommitdiff
path: root/tests/it_url.t
diff options
context:
space:
mode:
authorUrban Müller2015-08-10 16:04:53 +0200
committerUrban Müller2015-08-10 16:04:53 +0200
commit28ddc800b720c62fe2acc12e2bce88c0b4efaad8 (patch)
tree77ffe25fcc71b6d4daefe3fef7f7db9f482f2288 /tests/it_url.t
parent21205b1d20a4c0325e3b4484f1501078f6dd6846 (diff)
downloaditools-28ddc800b720c62fe2acc12e2bce88c0b4efaad8.tar.gz
itools-28ddc800b720c62fe2acc12e2bce88c0b4efaad8.tar.bz2
itools-28ddc800b720c62fe2acc12e2bce88c0b4efaad8.zip
php 5.3 compatibility
Diffstat (limited to 'tests/it_url.t')
-rwxr-xr-xtests/it_url.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/it_url.t b/tests/it_url.t
index 0b81881..514593c 100755
--- a/tests/it_url.t
+++ b/tests/it_url.t
@@ -185,7 +185,7 @@ handle_server(
$output = handle_server(
ok(
- !it_url::get(U('http://localhost:8000/redirect_loop', 'num' => 10)),
+ !it_url::get(U('http://localhost:8000/redirect_loop', array('num' => 10))),
'it_url::get() handles redirect loop'
)
);
@@ -198,7 +198,7 @@ if (!ok(
$output = handle_server(
ok(
- !it_url::get('url' => 'http://localhost:8000/does_not_exist', 'retries' => 4),
+ !it_url::get(array('url' => 'http://localhost:8000/does_not_exist', 'retries' => 4)),
'it_url::get() retries on empty response'
)
);
@@ -210,7 +210,7 @@ if (!ok(
handle_server(
is(
- it_url::get(U('http://localhost:8000/get_server_value', 'key' => 'HTTP_HOST')),
+ it_url::get(U('http://localhost:8000/get_server_value', array('key' => 'HTTP_HOST'))),
'localhost:8000',
'it_url::get() sets correct Host header'
)
@@ -218,7 +218,7 @@ handle_server(
handle_server(
is(
- it_url::get(U('http://localhost:8000/get_server_value', 'key' => 'HTTP_ACCEPT_LANGUAGE')),
+ it_url::get(U('http://localhost:8000/get_server_value', array('key' => 'HTTP_ACCEPT_LANGUAGE'))),
T_lang(),
'it_url::get() sets correct Accept-Language header'
)
@@ -226,7 +226,7 @@ handle_server(
handle_server(
ok(
- it::match('Mozilla', it_url::get(U('http://localhost:8000/get_server_value', 'key' => 'HTTP_USER_AGENT'))),
+ it::match('Mozilla', it_url::get(U('http://localhost:8000/get_server_value', array('key' => 'HTTP_USER_AGENT')))),
'it_url::get() sets User-Agent containing Mozilla'
)
);