diff options
author | Nathan Gass | 2023-10-30 15:46:33 +0100 |
---|---|---|
committer | Nathan Gass | 2023-10-30 15:46:33 +0100 |
commit | f471ee2b21d1dd24945ead7f38a3254585408991 (patch) | |
tree | 283cf79b29e3f107b40f6cd1c5621902d303f9f8 /test | |
parent | aeb4710c7237f41a6f8eec2beac0b5ce9e31c9e1 (diff) | |
download | itools-f471ee2b21d1dd24945ead7f38a3254585408991.tar.gz itools-f471ee2b21d1dd24945ead7f38a3254585408991.tar.bz2 itools-f471ee2b21d1dd24945ead7f38a3254585408991.zip |
change it_url::is_reachable to static api consistent with it_url::get
Diffstat (limited to 'test')
-rwxr-xr-x | test/it_url.t | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/it_url.t b/test/it_url.t index c147acc..192db26 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -132,14 +132,9 @@ is( $_SERVER['PHP_SELF'] = $php_self; -$url = new it_url('http://www.gna.ch/'); -is((bool)$url->is_reachable(), true, "is_reachable($url->url)"); - -$url = new it_url('http://www.search.ch/not_found'); -is((bool)$url->is_reachable(), false, "is_reachable($url->url)"); - -$url = new it_url('http://bogus.url'); -is((bool)$url->is_reachable(), false, "is_reachable($url->url)"); +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://bogus.url'), false, "is_reachable('http://bogus.url')"); $response = it_url::get(['url' => 'http://www.gna.ch/', 'assoc' => true]); ok( |