aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2024-11-19 21:25:59 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2024-11-19 21:31:35 +0100
commit654fa3ab707dba707235b5638e2fb839b5e4eea5 (patch)
treef7ebcf7190c6bb17cd02bd4278e5056bd4112aa4 /tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php
parentf8ee3601f9c85af3b3e7077b48978ce2c7f83d94 (diff)
downloadmediawikicore-654fa3ab707dba707235b5638e2fb839b5e4eea5.tar.gz
mediawikicore-654fa3ab707dba707235b5638e2fb839b5e4eea5.zip
tests: Use MediaWikiCoversValidator when extends PHPUnit's TestCase
Validate the @covers annotation to be valid on CI runs. This is done for mosts tests via MediaWikiCoversValidator in base class MediaWikiIntegrationTestCase or MediaWikiUnitTestCase Only omitted when @coversNothing is used. This is already used in other library-related test cases. Change-Id: Ib31db02b4c623e80049a5f4645c77824244b6d6d
Diffstat (limited to 'tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php')
-rw-r--r--tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php b/tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php
index 1c6fc2963742..46444299bea9 100644
--- a/tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php
+++ b/tests/phpunit/unit/includes/libs/Stats/StatsEmitterTest.php
@@ -2,6 +2,7 @@
namespace Wikimedia\Tests\Stats;
+use MediaWikiCoversValidator;
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;
use UDPTransport;
@@ -17,6 +18,7 @@ use Wikimedia\Stats\StatsFactory;
* @covers \Wikimedia\Stats\OutputFormats
*/
class StatsEmitterTest extends TestCase {
+ use MediaWikiCoversValidator;
public function testSendMetrics() {
// set up a mock statsd data factory