summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-04-23 14:14:20 +0200
committerUrban Müller2024-04-23 14:14:20 +0200
commit5dcd977b01e94103e0e6aa04fbeff6bca720c981 (patch)
treea5b791ac1a19469d5b3c3924a3739112d8062e5e
parent66e286a3107cb0c628c13e61985019d659e0be19 (diff)
downloaditools-5dcd977b01e94103e0e6aa04fbeff6bca720c981.tar.gz
itools-5dcd977b01e94103e0e6aa04fbeff6bca720c981.tar.bz2
itools-5dcd977b01e94103e0e6aa04fbeff6bca720c981.zip
current test domain is somtimes gnat available
-rwxr-xr-xtest/it_url.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/it_url.t b/test/it_url.t
index b141670..568feda 100755
--- a/test/it_url.t
+++ b/test/it_url.t
@@ -131,12 +131,12 @@ is(
);
$_SERVER['PHP_SELF'] = $php_self;
-is(it_url::is_reachable('http://www.gna.ch/'), true, "is_reachable('http://www.gna.ch/')");
-is(it_url::is_reachable('http://www.search.ch/not_found'), false, "is_reachable('http://www.search.ch/not_found')");
+is(it_url::is_reachable('http://search.ch/'), true, "is_reachable('http://www.search.ch/')");
+is(it_url::is_reachable('http://search.ch/not_found'), false, "is_reachable('http://www.search.ch/not_found')");
is(it_url::is_reachable('http://bogus.url'), false, "is_reachable('http://bogus.url')");
is(it_url::is_reachable(U("http://$host/redirect_loop", ['num' => 40])), false, "redirect loop is not reachable");
-$response = it_url::get(['url' => 'http://www.gna.ch/', 'assoc' => true]);
+$response = it_url::get(['url' => 'http://www.search.ch/', 'assoc' => true]);
ok(
strpos($response['data'], '</html>'), # UTF8SAFE
'Get with url as named arg'
@@ -152,7 +152,7 @@ is(
'Response headers correctly set'
);
-$page = it_url::get('http://www.gna.ch/');
+$page = it_url::get('http://www.search.ch/');
ok(
strpos($page, '</html>'), # UTF8SAFE
'it_url::get() static call'
@@ -341,7 +341,7 @@ handle_server(
)
);
-$pages = it_url::get_multi(['urls' => ['a' => 'http://www.gna.ch/', 'b' => 'http://search.ch/']]);
+$pages = it_url::get_multi(['urls' => ['a' => 'http://search.ch/tel/', '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');