Skip to content

Commit

Permalink
Merge pull request bcit-ci#4755 from tianhe1986/develop_not_replace_i…
Browse files Browse the repository at this point in the history
…s_double

CI_Unit_test: Do not replace "is_double" with "is_float".
  • Loading branch information
narfbg committed Aug 10, 2016
1 parent 7e6db8e commit 353f748
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion system/libraries/Unit_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ public function run($test, $expected = TRUE, $test_name = 'undefined', $notes =

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));
}
Expand Down

0 comments on commit 353f748

Please sign in to comment.