test with MWDebug enabled (made possible by r109032)
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 13:50:17 +0000 (13:50 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 13:50:17 +0000 (13:50 +0000)
tests/phpunit/includes/debug/MWDebugTest.php

index a2bbb27..e4d462d 100644 (file)
@@ -2,6 +2,16 @@
 
 class MWDebugTest extends MediaWikiTestCase {
 
+
+       function setUp() {
+               // Make sure MWDebug class is enabled
+               static $MWDebugEnabled = false;
+               if( !$MWDebugEnabled ) {
+                       MWDebug::init();
+                       $MWDebugEnabled = true;
+               }
+       }
+
        function tearDown() {
                /** Clear log before each test */
                MWDebug::clearLog();