X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fskip.inc;h=f273c91068d2cb8d0c8942c95fa032c90fe12c10;hp=64dba3452f3e3ebf8ac0db9416690e07d36fed2e;hb=4b22542b552ee0a6c999e19868edbc3b1096df02;hpb=0c8a4e49249dc2e9091f408af7a88aa0f73ac8b2 diff --git a/tests/skip.inc b/tests/skip.inc index 64dba34..f273c91 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,10 @@ - \ No newline at end of file + round((double) PHP_VERSION,1), "need PHP v$ver"); } +function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); } +function checkcls($cls) { skipif(!class_exists($cls), "need class $cls"); } +checkext('http'); +?>