X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fskip.inc;h=f273c91068d2cb8d0c8942c95fa032c90fe12c10;hp=f27d3554c2fabe6f3cd65d057d169d698b0ca7a8;hb=991da83d2e2f0ea005124a371a1eee49be826b18;hpb=16ea91ddd08d15dd9b7206229fec6158f212adaf diff --git a/tests/skip.inc b/tests/skip.inc index f27d355..f273c91 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,10 @@ 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'); ?>