diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-12 23:37:04 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-12 23:37:04 +0200 |
commit | 15dcf49a0ea6895cbf009dc15277858cfdd422ef (patch) | |
tree | 5a00d6edf1c4a940988f815208d2a744753f21c6 /system/libraries/Unit_test.php | |
parent | 5fe155ecd05af4ee68ef093200fb6a241baa89ce (diff) |
removed an ereg from config
added a qualifier to a str_replace for \t in Input
changed substr to strncmp in Codeigniter.php and directory_map function
added braces in an if statement of unit test
Removed "scripts" from the auto-load search path. Scripts were deprecated in Version 1.4.1 (September 21, 2006). If you still need to use them for legacy reasons, they must now be manually loaded in each Controller.
Diffstat (limited to 'system/libraries/Unit_test.php')
-rw-r--r-- | system/libraries/Unit_test.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php index 2fb2bbd32..bfa6d5dc5 100644 --- a/system/libraries/Unit_test.php +++ b/system/libraries/Unit_test.php @@ -55,8 +55,10 @@ class CI_Unit_test { function run($test, $expected = TRUE, $test_name = 'undefined')
{
if ($this->active == FALSE)
+ {
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))
{
$expected = str_replace('is_float', 'is_double', $expected);
@@ -340,6 +342,6 @@ function is_false($test) return (is_bool($test) AND $test === FALSE) ? TRUE : FALSE;
}
- -/* End of file Unit_test.php */ +
+/* End of file Unit_test.php */
/* Location: ./system/libraries/Unit_test.php */
\ No newline at end of file |