summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter/core')
-rw-r--r--tests/codeigniter/core/Input_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codeigniter/core/Input_test.php b/tests/codeigniter/core/Input_test.php
index 2aa3a6246..98d6299f8 100644
--- a/tests/codeigniter/core/Input_test.php
+++ b/tests/codeigniter/core/Input_test.php
@@ -163,12 +163,12 @@ class Input_test extends CI_TestCase {
public function test_ip_version()
{
$ip_v4 = '175.123.74.43';
- $this->assertEquals('4', $this->input->ip_version($ip_v4));
+ $this->assertEquals(4, $this->input->ip_version($ip_v4));
$ip_v6 = array('2001:0db8:0000:85a3:0000:0000:ac1f:8001', '2001:db8:0:85a3:0:0:ac1f:8001', '2001:db8:0:85a3::ac1f:8001');
foreach($ip_v6 as $ip)
{
- $this->assertEquals('6', $this->input->ip_version($ip));
+ $this->assertEquals(6, $this->input->ip_version($ip));
}
}