Changeset 3252 for trunk/modules

Show
Ignore:
Timestamp:
08/04/2008 06:24:08 AM (4 months ago)
Author:
Geert
Message:

Fix #732. Code coverage is going to be in a separate module, as far as I am aware.

Files:
1 modified

Legend:

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

    r3203 r3252  
    141141                                                } 
    142142 
    143                                                 xdebug_start_code_coverage(); 
    144  
    145143                                                // Run the actual test 
    146144                                                $object->$method_name(); 
    147  
    148                                                 var_dump(xdebug_get_code_coverage()); 
    149145 
    150146                                                // Run teardown method 
     
    210206        } 
    211207 
    212  
    213         /** 
    214          * 
    215          *@TODO 
    216          * 
    217          */ 
    218         private function collect_code_coverage_information() 
    219         { 
    220  
    221  
    222  
    223         } 
    224  
    225  
    226208        /** 
    227209         * Magically convert this object to a string. 
     
    255237        public function get_mock_object($class)  
    256238        { 
    257                          
    258  
    259  
    260         } 
    261  
     239 
     240        } 
    262241 
    263242        public function assert_true($value, $debug = NULL) 
    264243        { 
    265  
    266244                if ($value != TRUE) 
    267245                        throw new Kohana_Unit_Test_Exception(Kohana::lang('unit_test.assert_true', gettype($value), var_export($value, TRUE)), $debug); 
     
    475453        { 
    476454 
    477  
    478  
    479455        } 
    480456 
     
    482458        { 
    483459 
    484  
    485  
    486460        } 
    487461 
     
    489463        { 
    490464 
    491  
    492  
    493         } 
    494  
    495  
    496  
    497  
     465        } 
    498466 
    499467} // End Unit_Test_Case 
     
    505473 
    506474} // End Database_Unit_Test_Case 
    507  
    508475 
    509476