Go to the documentation of this file.
5 protected function setUp() {
8 static $MWDebugEnabled =
false;
9 if ( !$MWDebugEnabled ) {
11 $MWDebugEnabled =
true;
30 'msg' =>
'logging a string',
32 'caller' => __METHOD__,
45 'msg' =>
'Warning message',
47 'caller' =>
'MWDebugTest::testAddWarning',
61 $this->assertEquals( 1,
63 "Only one deprecated warning per function should be kept"
78 $this->assertEquals( 3,
80 "Only one deprecated warning per function should be kept"
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
wfSuppressWarnings( $end=false)
Reference-counted warning suppression.
testAddLog()
@covers MWDebug::log
static getLog()
Returns internal log array.
testAddWarning()
@covers MWDebug::warning
wfRestoreWarnings()
Restore error level to previous value.
static clearLog()
Clears internal log array and deprecation tracking.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static deprecated( $function, $version=false, $component=false, $callerOffset=2)
Show a warning that $function is deprecated.
static log( $str)
Adds a line to the log.
testAvoidDuplicateDeprecations()
@covers MWDebug::deprecated
static init()
Enabled the debugger and load resource module.
testAvoidNonConsecutivesDuplicateDeprecations()
@covers MWDebug::deprecated
static warning( $msg, $callerOffset=1, $level=E_USER_NOTICE, $log='auto')
Adds a warning entry to the log.