summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core/input.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-14 17:14:35 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-14 17:14:35 +0100
commitdcd6f5153b7e7e6d798d5a77af65b7460f152e5c (patch)
tree3f52a8b24fe55aeaf29f6cdb6dfa5b6e9f2ac095 /tests/mocks/core/input.php
parent24c866628d0ce5463d7e8b4eba512fa9e7752dfd (diff)
Isolate CI_Security instantiation from CI_Input; improve tests
Diffstat (limited to 'tests/mocks/core/input.php')
-rw-r--r--tests/mocks/core/input.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/mocks/core/input.php b/tests/mocks/core/input.php
index 4d217a252..6f6a91365 100644
--- a/tests/mocks/core/input.php
+++ b/tests/mocks/core/input.php
@@ -9,12 +9,10 @@ class Mock_Core_Input extends CI_Input {
*
* @covers CI_Input::__construct()
*/
- public function __construct($security, $utf8)
+ public function __construct($security)
{
- $this->_enable_csrf = (config_item('csrf_protection') === TRUE);
-
- // Assign Security and Utf8 classes
- $this->security = $security;
+ $this->_enable_csrf = (config_item('csrf_protection') === TRUE);
+ $this->security = $security;
}
public function fetch_from_array($array, $index = '', $xss_clean = FALSE)