summaryrefslogtreecommitdiff
path: root/tests/skipifnotcli.inc
diff options
context:
space:
mode:
authorStefan Esser2010-02-21 11:44:54 +0100
committerStefan Esser2010-02-21 11:44:54 +0100
commit36dbfacbe64697d959f524e537b15b73c090d898 (patch)
treef1c7ce1409b0e7765fc72d550546967fcf0f9717 /tests/skipifnotcli.inc
Inital commit
Diffstat (limited to 'tests/skipifnotcli.inc')
-rw-r--r--tests/skipifnotcli.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/skipifnotcli.inc b/tests/skipifnotcli.inc
new file mode 100644
index 0000000..823cb91
--- /dev/null
+++ b/tests/skipifnotcli.inc
@@ -0,0 +1,8 @@
1<?php
2if (php_sapi_name()!='cli') {
3 print 'skip - SAPI != cli';
4} else {
5if(!extension_loaded("suhosin"))
6 print "skip - SUHOSIN extension not available";
7}
8?>