X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fskip.inc;h=98b15e3242235a8b8092aec39062df02fa9c09ba;hb=8bbaf9ef26fbae12175c506bf71451da38a85676;hp=f27d3554c2fabe6f3cd65d057d169d698b0ca7a8;hpb=16ea91ddd08d15dd9b7206229fec6158f212adaf;p=m6w6%2Fext-http diff --git a/tests/skip.inc b/tests/skip.inc index f27d355..98b15e3 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,9 @@ (int) PHP_VERSION, "need PHP v$ver"); } +function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); } +checkext('http'); ?>