From 0ce73efdef39b5760766fcdde08485e94b754953 Mon Sep 17 00:00:00 2001
From: Derek Allard Running a test involves supplying a test and an expected result to the following function: Where test is the result of the code you wish to test,
-expected result is the data type you expect, and test name is an optional name you can give your test. Example: Where test is the result of the code you wish to test, expected result is the data type you expect,
+test name is an optional name you can give your test, and notes are optional notes. Example:$this->unit->run( test, expected result, 'test name' );
+$this->unit->run( test, expected result, 'test name', 'notes');
-$test = 1 + 1;
@@ -160,9 +160,29 @@ unit testing using:
$this->unit->active(FALSE)
+When your unit test results display, the following items show by default:
-
+ $this->unit->set_test_items(array('test_name', 'result'));
+
+
+If you would like your test results formatted differently then the default you can set your own template. Here is an example of a simple template. Note the required pseudo-variables:
-- cgit v1.2.3-24-g4f1b