Index: trunk/phase3/tests/phpunit/includes/debug/MWDebugTest.php |
— | — | @@ -2,6 +2,16 @@ |
3 | 3 | |
4 | 4 | class MWDebugTest extends MediaWikiTestCase { |
5 | 5 | |
| 6 | + |
| 7 | + function setUp() { |
| 8 | + // Make sure MWDebug class is enabled |
| 9 | + static $MWDebugEnabled = false; |
| 10 | + if( !$MWDebugEnabled ) { |
| 11 | + MWDebug::init(); |
| 12 | + $MWDebugEnabled = true; |
| 13 | + } |
| 14 | + } |
| 15 | + |
6 | 16 | function tearDown() { |
7 | 17 | /** Clear log before each test */ |
8 | 18 | MWDebug::clearLog(); |