}
/** Clear log before each test */
MWDebug::clearLog();
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
}
protected function tearDown() {
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
parent::tearDown();
}
array( array(
'msg' => 'logging a string',
'type' => 'log',
- 'caller' => __METHOD__,
+ 'caller' => 'MWDebugTest->testAddLog',
) ),
MWDebug::getLog()
);