X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fskip.inc;h=268edf16d1e96d49ff18836d080c92f0db0e0f99;hb=391c85f10c017e1e4de656b051c1bba009ede7b3;hp=f27d3554c2fabe6f3cd65d057d169d698b0ca7a8;hpb=16ea91ddd08d15dd9b7206229fec6158f212adaf;p=m6w6%2Fext-http diff --git a/tests/skip.inc b/tests/skip.inc index f27d355..268edf1 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,11 @@ round((double) PHP_VERSION,1), sprintf("need PHP >= v%0.1f",$ver)); } +function checkmax($ver) { skipif(round($ver,1) < round((double) PHP_VERSION,1), sprintf("need PHP <= v%0.1f",$ver)); } +function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); } +function checkcls($cls) { skipif(!class_exists($cls), "need class $cls"); } +checkext('http'); ?>