From acffbd72e57bb21c53019923f5e6d5a0d903dd00 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 16 Jan 2012 13:50:17 +0000 Subject: [PATCH] test with MWDebug enabled (made possible by r109032) --- tests/phpunit/includes/debug/MWDebugTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); -- 2.20.1