summaryrefslogtreecommitdiffstats
path: root/skipif.inc
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-01-25 14:38:18 +0100
committerRemi Collet <remi@remirepo.net>2021-01-25 14:38:18 +0100
commit3322d6726dd05b802c88f01696939b99c4497582 (patch)
treeb45445f9ea1b1a9f68b21e0abefb7ee7e1ce407f /skipif.inc
parent52def9e3f3ce94fb33f2561b6a978b58a1a456e7 (diff)
add patch for PHP 8 from
https://github.com/vitoc/gmagick/pull/50 add build fixes from https://github.com/rlerdorf/gmagick/pull/1 https://github.com/rlerdorf/gmagick/pull/2
Diffstat (limited to 'skipif.inc')
-rw-r--r--skipif.inc12
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");
+ }
+ }
+}