diff options
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( |