r109033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109032‎ | r109033 | r109034 >
Date:13:50, 16 January 2012
Author:hashar
Status:ok
Tags:
Comment:
test with MWDebug enabled (made possible by r109032)
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/debug/MWDebugTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/debug/MWDebugTest.php
@@ -2,6 +2,16 @@
33
44 class MWDebugTest extends MediaWikiTestCase {
55
 6+
 7+ function setUp() {
 8+ // Make sure MWDebug class is enabled
 9+ static $MWDebugEnabled = false;
 10+ if( !$MWDebugEnabled ) {
 11+ MWDebug::init();
 12+ $MWDebugEnabled = true;
 13+ }
 14+ }
 15+
616 function tearDown() {
717 /** Clear log before each test */
818 MWDebug::clearLog();

Follow-up revisions

RevisionCommit summaryAuthorDate
r109034enable MWDebug tests...hashar13:56, 16 January 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109032Move MWDebug enabling logic to Setup.php...hashar13:44, 16 January 2012

Status & tagging log