Changeset 3203 for trunk/modules

Show
Ignore:
Timestamp:
07/23/2008 07:15:50 PM (4 months ago)
Author:
msaraujo
Message:

Mock Objects (first thoughts)

Files:
1 modified

Legend:

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

    r3163 r3203  
    141141                                                } 
    142142 
     143                                                xdebug_start_code_coverage(); 
     144 
    143145                                                // Run the actual test 
    144146                                                $object->$method_name(); 
     147 
     148                                                var_dump(xdebug_get_code_coverage()); 
    145149 
    146150                                                // Run teardown method 
     
    247251 
    248252abstract class Unit_Test_Case { 
     253         
     254        // Mock Objects 
     255        public function get_mock_object($class)  
     256        { 
     257                         
     258 
     259 
     260        } 
     261 
    249262 
    250263        public function assert_true($value, $debug = NULL) 
     
    480493        } 
    481494 
     495 
     496 
     497 
     498 
    482499} // End Unit_Test_Case 
    483500 
    484501 
    485 abstract class Database_Unit_Test_Case { 
     502abstract class Database_Test_Case { 
    486503 
    487504