summaryrefslogtreecommitdiffstats
path: root/tests/mocks
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-09 20:52:25 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-09 20:52:25 +0200
commitcf512a63b5de57763e03dc3309205843e4d62511 (patch)
treed67342947f063028dff2031f2061efa11d1dd08b /tests/mocks
parent2e3e23053d9748c68fa2c0e11f43af67da8743e8 (diff)
parent82003dac7e1da25ffb0d925ba197121b5b7b27f5 (diff)
Merge pull request #1868 from dchill42/session_unit
Overloaded is_cli_request in Input mock for Session test
Diffstat (limited to 'tests/mocks')
-rw-r--r--tests/mocks/core/input.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mocks/core/input.php b/tests/mocks/core/input.php
index 2a4aa4997..0d1873849 100644
--- a/tests/mocks/core/input.php
+++ b/tests/mocks/core/input.php
@@ -28,4 +28,14 @@ class Mock_Core_Input extends CI_Input {
return parent::_fetch_from_array($array, $index, $xss_clean);
}
+ /**
+ * Lie about being a CLI request
+ *
+ * We take advantage of this in libraries/Session_test
+ */
+ public function is_cli_request()
+ {
+ return FALSE;
+ }
+
} \ No newline at end of file