From f964b16f3db95d655420dfae2012ee9fbb98a1a8 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 12 Nov 2013 17:04:55 +0200 Subject: Deprecate CI_Input::is_cli_request() and add common function is_cli() to replace it Calls to this function are often needed before the Input library is available --- tests/mocks/core/common.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/mocks/core/common.php') 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 -- cgit v1.2.3-24-g4f1b