From: Antoine Musso Date: Mon, 16 Jan 2012 13:50:17 +0000 (+0000) Subject: test with MWDebug enabled (made possible by r109032) X-Git-Tag: 1.31.0-rc.0~25242 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=acffbd72e57bb21c53019923f5e6d5a0d903dd00;p=lhc%2Fweb%2Fwiklou.git test with MWDebug enabled (made possible by r109032) --- diff --git a/tests/phpunit/includes/debug/MWDebugTest.php b/tests/phpunit/includes/debug/MWDebugTest.php index a2bbb2733c..e4d462ddd1 100644 --- a/tests/phpunit/includes/debug/MWDebugTest.php +++ b/tests/phpunit/includes/debug/MWDebugTest.php @@ -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();