Changeset 2298
- Timestamp:
- 03/13/08 02:39:56 (5 months ago)
- Files:
-
- trunk/modules/unit_test/libraries/Unit_Test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/unit_test/libraries/Unit_Test.php
r2295 r2298 114 114 $object = new $class; 115 115 116 // Run setup method117 if ($setup === TRUE)118 {119 $object->setup();120 }121 122 // Run the actual test123 116 try 124 117 { 118 // Run setup method 119 if ($setup === TRUE) 120 { 121 $object->setup(); 122 } 123 124 // Run the actual test 125 125 $object->$method_name(); 126 127 // Run teardown method 128 if ($teardown === TRUE) 129 { 130 $object->teardown(); 131 } 126 132 127 133 // Test passed … … 142 148 } 143 149 144 // Run teardown method145 if ($teardown === TRUE)146 {147 $object->teardown();148 }149 150 150 // Cleanup 151 151 unset($object);
