summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorHeesung Ahn <ahn.heesung@gmail.com>2015-03-19 00:12:27 +0100
committerHeesung Ahn <ahn.heesung@gmail.com>2015-03-19 00:12:27 +0100
commitc44a656649ca4d198f29ea1f07fe0174ce832ccc (patch)
tree7309fdc621de56f54677bd269c422c8d17a041a5 /tests/codeigniter
parent0fc46caedd690b05141a0b80bc5d7bca9b72b61b (diff)
minor update
Signed-off-by:Heesung Ahn <ahn.heesung@gmail.com>
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/core/Input_test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codeigniter/core/Input_test.php b/tests/codeigniter/core/Input_test.php
index a632ee689..e269b1762 100644
--- a/tests/codeigniter/core/Input_test.php
+++ b/tests/codeigniter/core/Input_test.php
@@ -250,9 +250,10 @@ class Input_test extends CI_TestCase {
$this->assertEquals('127.0.0.1', $this->input->ip_address());
$this->input->ip_address = FALSE;
- $this->ci_set_config('proxy_ips', 'http://foo/bar/baz, 127.0.0.1/1');
+ $this->ci_set_config('proxy_ips', 'http://foo/bar/baz, 127.0.0.2');
$_SERVER['HTTP_CLIENT_IP'] = '127.0.0.2';
- $this->assertNotEquals('127.0.0.1', $this->input->ip_address());
+ $_SERVER['REMOTE_ADDR'] = '127.0.0.2';
+ $this->assertEquals('127.0.0.2', $this->input->ip_address());
//IPv6
$this->input->ip_address = FALSE;