Ticket #477: Unit_Test.php.patch
| File Unit_Test.php.patch, 1.0 kB (added by allain, 10 months ago) |
|---|
-
C:/xampp/htdocs/diomanager2/modules/unit_test/libraries/Unit_Test.php
84 84 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, 'error' => 0); 88 88 89 89 // Loop through all the class methods 90 90 foreach ($reflector->getMethods() as $method) … … 121 121 $this->results[$class][$method_name] = $e; 122 122 $this->stats[$class]['failed']++; 123 123 } 124 catch (Exception $e) 125 { 126 // Test failed 127 $this->results[$class][$method_name] = $e; 128 $this->stats[$class]['error']++; 129 } 124 130 125 131 // Run teardown method 126 132 if ($reflector->hasMethod('teardown'))
