X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fskip.inc;h=5665d5dddd141f65563b86bfea15a3911cdae10e;hb=04ab82bb0588062ad30a3f8dd1b41792925aac83;hp=64dba3452f3e3ebf8ac0db9416690e07d36fed2e;hpb=0c8a4e49249dc2e9091f408af7a88aa0f73ac8b2;p=m6w6%2Fext-http diff --git a/tests/skip.inc b/tests/skip.inc index 64dba34..5665d5d 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,12 @@ - \ No newline at end of file + 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"); } +function checkver($ver) { checkmin($ver); } +checkext('http'); +?>