From 82d6ec41b5029141d10f30f5f6a791bbf7d14693 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 22 Dec 2009 13:53:53 +0000 Subject: Added "is_object" into the list of unit tests capable of being run. --- system/libraries/Unit_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Unit_test.php') diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php index d1db6297b..29a7fa383 100644 --- a/system/libraries/Unit_test.php +++ b/system/libraries/Unit_test.php @@ -59,7 +59,7 @@ class CI_Unit_test { return FALSE; } - 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)) + 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'), TRUE)) { $expected = str_replace('is_float', 'is_double', $expected); $result = ($expected($test)) ? TRUE : FALSE; -- cgit v1.2.3-24-g4f1b