summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/core/common.php')
-rw-r--r--tests/mocks/core/common.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mocks/core/common.php b/tests/mocks/core/common.php
index e5dc29c86..b073f230d 100644
--- a/tests/mocks/core/common.php
+++ b/tests/mocks/core/common.php
@@ -190,4 +190,13 @@ if ( ! function_exists('set_status_header'))
{
return TRUE;
}
+}
+
+if ( ! function_exists('is_cli'))
+{
+ // In order to test HTTP functionality, we need to lie about this
+ function is_cli()
+ {
+ return FALSE;
+ }
} \ No newline at end of file