Changeset 3265 for trunk/modules
- Timestamp:
- 08/05/2008 02:29:29 PM (4 months ago)
- Location:
- trunk/modules/unit_test
- Files:
-
- 2 modified
-
libraries/Unit_Test.php (modified) (1 diff)
-
tests/Example_Test.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/unit_test/libraries/Unit_Test.php
r3252 r3265 88 88 89 89 // Skip disabled Tests 90 if ($reflector->hasProperty('DISABLED')) 91 { 92 $property = new ReflectionProperty($class, 'DISABLED'); 93 if ($property->getValue(new $class) === TRUE) 94 continue; 95 } 90 if ($reflector->getConstant('DISABLED') === TRUE) 91 continue; 96 92 97 93 // Initialize setup and teardown method triggers -
trunk/modules/unit_test/tests/Example_Test.php
r3132 r3265 12 12 class Example_Test extends Unit_Test_Case { 13 13 14 // public $DISABLED = TRUE; // Disables this Test class 14 // Disable this Test class? 15 const DISABLED = FALSE; 15 16 16 17 public $setup_has_run = FALSE;
