summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/Cache.php
diff options
context:
space:
mode:
authorDaniel Paul Searles <daniel@treemoinc.com>2012-11-03 01:39:44 +0100
committerDaniel Paul Searles <daniel@treemoinc.com>2012-11-03 01:39:44 +0100
commitd2ae1d1d7fdc4b8a21369a25487c2c42e5a496bf (patch)
treee7f5bbb180534fb85b2e64fe4b069e5615f62621 /system/libraries/Cache/Cache.php
parentdd8d3d366bef1bc3fcb4476e88e8e6af44b89973 (diff)
Refactored Unit_test in order to remove redundant code.
The Unit_test::run method was adding another dimension to the Unit_test::$results array. For example: Array ( [0] => Array ( [0] => Array ( [test_name] => first_test [test_datatype] => integer [res_datatype] => integer [result] => passed [file] => ######################################## [line] => 60 [notes] => Im expecting this test to pass! ) ) [1] => Array ( [0] => Array ( [test_name] => second_test [test_datatype] => integer [res_datatype] => boolean [result] => failed [file] => ####################################### [line] => 65 [notes] => Im expecting this to fail. ) ) ) The above unneeded dimension created a need to loop through an array in the Unit_test::result method if the method was looping through all results. Signed-off-by: Daniel Paul Searles <daniel.paul.searles@gmail.com>
Diffstat (limited to 'system/libraries/Cache/Cache.php')
0 files changed, 0 insertions, 0 deletions