Show
Ignore:
Timestamp:
03/12/2008 10:16:18 AM (9 months ago)
Author:
Geert
Message:

Fix #477

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/unit_test/libraries/Unit_Test.php

    r2283 r2288  
    8585                                // Initialize test class results and stats 
    8686                                $this->results[$class] = array(); 
    87                                 $this->stats[$class] = array('passed' => 0, 'failed' => 0); 
     87                                $this->stats[$class] = array('passed' => 0, 'failed' => 0, 'errors' => 0); 
    8888 
    8989                                // Loop through all the class methods 
     
    122122                                                $this->stats[$class]['failed']++; 
    123123                                        } 
     124                                        catch (Exception $e) 
     125                                        { 
     126                                                // Test error 
     127                                                $this->results[$class][$method_name] = $e; 
     128                                                $this->stats[$class]['errors']++; 
     129                                        } 
    124130 
    125131                                        // Run teardown method