diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-14 17:41:52 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-12-14 17:41:52 +0100 |
commit | 9f20c8011a80d74edb740081cd96388bb6a967e6 (patch) | |
tree | 281a63537895b7a92b15762815a0776310e67ab6 /tests/mocks/core | |
parent | dcd6f5153b7e7e6d798d5a77af65b7460f152e5c (diff) |
Move csrf_verify() call out of CI_Input
Diffstat (limited to 'tests/mocks/core')
-rw-r--r-- | tests/mocks/core/input.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/mocks/core/input.php b/tests/mocks/core/input.php deleted file mode 100644 index 6f6a91365..000000000 --- a/tests/mocks/core/input.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -class Mock_Core_Input extends CI_Input { - - /** - * Since we use GLOBAL to fetch Security and Utf8 classes, - * we need to use inversion of control to mock up - * the same process within CI_Input class constructor. - * - * @covers CI_Input::__construct() - */ - public function __construct($security) - { - $this->_enable_csrf = (config_item('csrf_protection') === TRUE); - $this->security = $security; - } - - public function fetch_from_array($array, $index = '', $xss_clean = FALSE) - { - return parent::_fetch_from_array($array, $index, $xss_clean); - } - - public function __set($name, $value) - { - if ($name === 'ip_address') - { - $this->ip_address = $value; - } - } -} |