From 3ceb767b83cc79737dcff31b4b09d7a5a4ee6b26 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 18 Jan 2012 15:58:25 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/debug/MWDebugTest.php | 3 --- 1 file changed, 3 deletions(-) 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(); } -- 2.20.1