Fix testDebugFunctionTest() so that it works when LocalSettings.php
sets $wgMWLoggerDefaultSpi
Change-Id: I5e573b0ce1ce037c3505d3b44d9710395c9af8d6
<?php
+use MediaWiki\Logger\LegacyLogger;
+
/**
* @group Database
* @group GlobalFunctions
$this->setMwGlobals( [
'wgDebugLogFile' => $debugLogFile,
# @todo FIXME: $wgDebugTimestamps should be tested
- 'wgDebugTimestamps' => false
+ 'wgDebugTimestamps' => false,
] );
+ $this->setLogger( 'wfDebug', new LegacyLogger( 'wfDebug' ) );
wfDebug( "This is a normal string" );
$this->assertEquals( "This is a normal string\n", file_get_contents( $debugLogFile ) );