X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fdebug%2Flogger%2Fmonolog%2FAvroFormatterTest.php;h=915a18630ed56096b498709072e5d93ba3ab6e7b;hp=a9a1e7a123c53daed7d18b7efdd6eb522a028965;hb=1a40e0cc86b6ee0706606ded3ea243dfde4a414c;hpb=3071f1fad720f1773864621158a0c59b73124896 diff --git a/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php b/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php index a9a1e7a123..915a18630e 100644 --- a/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php +++ b/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php @@ -23,6 +23,9 @@ namespace MediaWiki\Logger\Monolog; use MediaWikiTestCase; use PHPUnit_Framework_Error_Notice; +/** + * @covers \MediaWiki\Logger\Monolog\AvroFormatter + */ class AvroFormatterTest extends MediaWikiTestCase { protected function setUp() { @@ -47,9 +50,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 ); }