X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fskip.inc;h=09da16948c3a1adc24782a301573391803e8e6ca;hp=98b15e3242235a8b8092aec39062df02fa9c09ba;hb=62fd5b5f1e43cf04e0467a48578826726cfe5821;hpb=494c4fd4db3772b99821f31aaa14ad632b5fd713 diff --git a/tests/skip.inc b/tests/skip.inc index 98b15e3..09da169 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -5,5 +5,6 @@ function checkcgi() { skipif(!strncasecmp('CLI', PHP_SAPI, 3), 'need CGI SAPI'); function checkext($ext) { skipif(!extension_loaded($ext), "need ext/$ext"); } function checkver($ver) { skipif($ver > (int) PHP_VERSION, "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'); ?>