Changeset 2288 for trunk/modules/unit_test/libraries/Unit_Test.php
- Timestamp:
- 03/12/2008 10:16:18 AM (9 months ago)
- Files:
-
- 1 modified
-
trunk/modules/unit_test/libraries/Unit_Test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/unit_test/libraries/Unit_Test.php
r2283 r2288 85 85 // Initialize test class results and stats 86 86 $this->results[$class] = array(); 87 $this->stats[$class] = array('passed' => 0, 'failed' => 0 );87 $this->stats[$class] = array('passed' => 0, 'failed' => 0, 'errors' => 0); 88 88 89 89 // Loop through all the class methods … … 122 122 $this->stats[$class]['failed']++; 123 123 } 124 catch (Exception $e) 125 { 126 // Test error 127 $this->results[$class][$method_name] = $e; 128 $this->stats[$class]['errors']++; 129 } 124 130 125 131 // Run teardown method
