From 5dcd977b01e94103e0e6aa04fbeff6bca720c981 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 23 Apr 2024 14:14:20 +0200 Subject: current test domain is somtimes gnat available --- test/it_url.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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'], ''), # 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, ''), # 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'], ''), 'it_url::get_multi got first url'); # UTF8SAFE ok(strpos($pages['b'], ''), 'it_url::get_multi got second url'); # UTF8SAFE is(count($pages), 2, 'it_url::get_multi no additional array elements'); -- cgit v1.2.3