diff options
Diffstat (limited to 'skipif.inc')
-rw-r--r-- | skipif.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/skipif.inc b/skipif.inc new file mode 100644 index 0000000..f759ced --- /dev/null +++ b/skipif.inc @@ -0,0 +1,12 @@ +<?php + +if (!extension_loaded("gmagick")) die("skip"); + +function checkClassMethods($class, $methods) +{ + foreach ($methods as $method) { + if (method_exists($class, $method) == false) { + die("skip Class method $class::$method not present"); + } + } +} |