summaryrefslogtreecommitdiffstats
path: root/skipif.inc
diff options
context:
space:
mode:
Diffstat (limited to 'skipif.inc')
-rw-r--r--skipif.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/skipif.inc b/skipif.inc
new file mode 100644
index 0000000..591e7f8
--- /dev/null
+++ b/skipif.inc
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * Skip Disable Reader
+ *
+ * @return void
+ *
+ * @author viest
+ */
+function skip_disable_reader() {
+ if (!method_exists('\Vtiful\Kernel\Excel', 'openFile')) {
+ print "skip";
+ }
+}
+
+(function(){
+ if (!extension_loaded("xlswriter")) {
+ print "skip";
+ }
+})();
+