From: Antoine Musso Date: Wed, 18 Jan 2012 15:58:25 +0000 (+0000) Subject: MWDebugTest: clear log before running tests X-Git-Tag: 1.31.0-rc.0~25207 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=3ceb767b83cc79737dcff31b4b09d7a5a4ee6b26;p=lhc%2Fweb%2Fwiklou.git MWDebugTest: clear log before running tests Some other test could have added their own logs, for example deprecated notice. In that case, the first test will fail because the log array already has some content :-b --- diff --git a/tests/phpunit/includes/debug/MWDebugTest.php b/tests/phpunit/includes/debug/MWDebugTest.php index ffb1c7a58b..5a4e66d422 100644 --- a/tests/phpunit/includes/debug/MWDebugTest.php +++ b/tests/phpunit/includes/debug/MWDebugTest.php @@ -10,9 +10,6 @@ class MWDebugTest extends MediaWikiTestCase { MWDebug::init(); $MWDebugEnabled = true; } - } - - function tearDown() { /** Clear log before each test */ MWDebug::clearLog(); }