summaryrefslogtreecommitdiffstats
path: root/system/libraries/Unit_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-08 16:57:52 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-08 16:57:52 +0200
commit7018d892512af76043c5843f663da76a7ed08cb7 (patch)
treec48a5323eee4cab77c06d087acaf8effba172956 /system/libraries/Unit_test.php
parent2ffdb7b9ddcd9cbc49fc347fe8d8f276bdab60e0 (diff)
Fix #3963
Diffstat (limited to 'system/libraries/Unit_test.php')
-rw-r--r--system/libraries/Unit_test.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php
index 60b046ba0..158f841ed 100644
--- a/system/libraries/Unit_test.php
+++ b/system/libraries/Unit_test.php
@@ -291,10 +291,12 @@ class CI_Unit_test {
{
continue;
}
-
- if (FALSE !== ($line = $CI->lang->line(strtolower('ut_'.$val), FALSE)))
+ elseif (in_array($key, array('test_name', 'test_datatype', 'test_res_datatype', 'result'), TRUE))
{
- $val = $line;
+ if (FALSE !== ($line = $CI->lang->line(strtolower('ut_'.$val), FALSE)))
+ {
+ $val = $line;
+ }
}
$temp[$CI->lang->line('ut_'.$key, FALSE)] = $val;