From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/libraries/unit_testing.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'user_guide/libraries/unit_testing.html') diff --git a/user_guide/libraries/unit_testing.html b/user_guide/libraries/unit_testing.html index f0b3782a9..02229e572 100644 --- a/user_guide/libraries/unit_testing.html +++ b/user_guide/libraries/unit_testing.html @@ -12,7 +12,7 @@ @@ -66,8 +66,8 @@ Unit Testing Class

Unit testing is an approach to software development in which tests are written for each function in your application. If you are not familiar with the concept you might do a little googling on the subject.

-

Code Igniter's Unit Test class is quite simple, consisting of an evaluation function and two result functions. -It's not intended to be a full-blown test suite but rather a simple mechanism to evaluate your code +

Code Igniter's Unit Test class is quite simple, consisting of an evaluation function and two result functions. +It's not intended to be a full-blown test suite but rather a simple mechanism to evaluate your code to determine if it is producing the correct data type and result.

@@ -86,7 +86,7 @@ to determine if it is producing the correct data type and result.

$this->unit->run( test, expected result, 'test name' );

-

Where test is the result of the code you wish to test, +

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:

$test = 1 + 1;
@@ -105,7 +105,7 @@ $this->unit->run($test, $expected_result, $test_name);
$this->unit->run('Foo', 'is_string'); -

Notice the use of "is_string" in the second parameter? This tells the function to evaluate whether your test is producing a string +

Notice the use of "is_string" in the second parameter? This tells the function to evaluate whether your test is producing a string as the result. Here is a list of allowed comparison types: