summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-08-09 13:25:07 +0200
committertianhe1986 <w1s2j3229@163.com>2016-08-09 13:25:07 +0200
commita40418b794843f9ab37c30a909f3118a5c1c63af (patch)
treef5e844c9fe234fe868177b03e3235c74baa742d8
parenta4ed425b218942ed7e60d993325f592f5c24e59e (diff)
CI_Unit_test: Do not replace "is_double" with "is_float".
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
-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 3ac6af78e..eee0723a1 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));
}