diff options
-rwxr-xr-x | test/it_url.t | 10 |
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'); |