Remove use of deprecated wfSuppress/RestoreWarnings
[lhc/web/wiklou.git] / tests / phpunit / includes / debug / logger / monolog / AvroFormatterTest.php
index a9a1e7a..938397a 100644 (file)
@@ -47,9 +47,9 @@ class AvroFormatterTest extends MediaWikiTestCase {
                // disable conversion of notices
                PHPUnit_Framework_Error_Notice::$enabled = false;
                // have to keep the user notice from being output
-               wfSuppressWarnings();
+               \MediaWiki\suppressWarnings();
                $res = $formatter->format( [ 'channel' => 'marty' ] );
-               wfRestoreWarnings();
+               \MediaWiki\restoreWarnings();
                PHPUnit_Framework_Error_Notice::$enabled = $noticeEnabled;
                $this->assertNull( $res );
        }