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=baa4df7390adff5f9092fb6ae496b29b12bee659;hp=938397ab1f8101f51e4c57a461e540d09571ee50;hb=15c27d356b5e6760024ac0653279a76d94d78b1f;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721 diff --git a/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php b/tests/phpunit/includes/debug/logger/monolog/AvroFormatterTest.php index 938397ab1f..baa4df7390 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 - \MediaWiki\suppressWarnings(); + \Wikimedia\suppressWarnings(); $res = $formatter->format( [ 'channel' => 'marty' ] ); - \MediaWiki\restoreWarnings(); + \Wikimedia\restoreWarnings(); PHPUnit_Framework_Error_Notice::$enabled = $noticeEnabled; $this->assertNull( $res ); }