MWDebugTest: clear log before running tests
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 18 Jan 2012 15:58:25 +0000 (15:58 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 18 Jan 2012 15:58:25 +0000 (15:58 +0000)
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

index ffb1c7a..5a4e66d 100644 (file)
@@ -10,9 +10,6 @@ class MWDebugTest extends MediaWikiTestCase {
                        MWDebug::init();
                        $MWDebugEnabled = true;
                }
-       }
-
-       function tearDown() {
                /** Clear log before each test */
                MWDebug::clearLog();
        }