summaryrefslogtreecommitdiffstats
path: root/system/libraries/Unit_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-08-10 13:18:19 +0200
committerGitHub <noreply@github.com>2016-08-10 13:18:19 +0200
commit28d97168bf82d50440a489efda32b707fbcd1dbd (patch)
treea94ac84af274aa42bb1844b983a07daeff30222c /system/libraries/Unit_test.php
parent7cac1ec60344b825a2be17fd8b8d55d78ba0cfe6 (diff)
parenta40418b794843f9ab37c30a909f3118a5c1c63af (diff)
Merge pull request #4755 from tianhe1986/develop_not_replace_is_double
CI_Unit_test: Do not replace "is_double" with "is_float".
Diffstat (limited to 'system/libraries/Unit_test.php')
-rw-r--r--system/libraries/Unit_test.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php
index ea78e0d98..3122ed624 100644
--- a/system/libraries/Unit_test.php
+++ b/system/libraries/Unit_test.php
@@ -154,7 +154,6 @@ class CI_Unit_test {
if (in_array($expected, array('is_object', 'is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null', 'is_resource'), TRUE))
{
- $expected = str_replace('is_double', 'is_float', $expected);
$result = $expected($test);
$extype = str_replace(array('true', 'false'), 'bool', str_replace('is_', '', $expected));
}