use MediaWikiTestCase;
use PHPUnit_Framework_Error_Notice;
+/**
+ * @covers \MediaWiki\Logger\Monolog\AvroFormatter
+ */
class AvroFormatterTest extends MediaWikiTestCase {
protected function setUp() {
// disable conversion of notices
PHPUnit_Framework_Error_Notice::$enabled = false;
// have to keep the user notice from being output
- \MediaWiki\suppressWarnings();
+ \Wikimedia\suppressWarnings();
$res = $formatter->format( [ 'channel' => 'marty' ] );
- \MediaWiki\restoreWarnings();
+ \Wikimedia\restoreWarnings();
PHPUnit_Framework_Error_Notice::$enabled = $noticeEnabled;
$this->assertNull( $res );
}