summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-27 14:09:34 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-27 14:09:34 +0100
commit52caf59f244e0c1363ac0ce6ba61a7f5001603df (patch)
tree3e5da9669a232579dd1637d567414206601ccf9e /tests
parent7d365dcc8bdf69534b54401cc862be105e1a8a28 (diff)
Make CI_Input:: read-only as well
Diffstat (limited to 'tests')
-rw-r--r--tests/mocks/core/input.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mocks/core/input.php b/tests/mocks/core/input.php
index 0d1873849..40e27441f 100644
--- a/tests/mocks/core/input.php
+++ b/tests/mocks/core/input.php
@@ -38,4 +38,12 @@ class Mock_Core_Input extends CI_Input {
return FALSE;
}
+ public function __set($name, $value)
+ {
+ if ($name === 'ip_address')
+ {
+ $this->ip_address = $value;
+ }
+ }
+
} \ No newline at end of file