summaryrefslogtreecommitdiffstats
path: root/system/libraries/Unit_test.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-28 19:13:38 +0200
committeradmin <devnull@localhost>2006-09-28 19:13:38 +0200
commitee54c112bfb488f833fa032758b817e1bb2c1d7d (patch)
tree0f88961293c374d2f6da29856466b75ce319e119 /system/libraries/Unit_test.php
parente721cc7c81af84dcabce2992fa693ce36b605a19 (diff)
Diffstat (limited to 'system/libraries/Unit_test.php')
-rw-r--r--system/libraries/Unit_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php
index d3e151328..78b92edb2 100644
--- a/system/libraries/Unit_test.php
+++ b/system/libraries/Unit_test.php
@@ -57,7 +57,7 @@ class CI_Unit_test {
if ($this->active == FALSE)
return;
- if ($expected !== 0 AND in_array($expected, array('is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null')))
+ if (in_array($expected, array('is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE))
{
$expected = str_replace('is_float', 'is_double', $expected);
$result = ($expected($test)) ? TRUE : FALSE;