aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2025-04-04 12:59:38 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2025-04-04 12:59:38 +0000
commit724de1902aca9cebd6975d76510bf21343c4436d (patch)
treed90a067ea804ea7339c42c873ed554a0871db718
parentf04200dab7b293ba01053fc20cedb13fce37c7c5 (diff)
parentf860fe1b18883d4081f09e1c1a5378f5274cdf9e (diff)
downloadmediawikicore-724de1902aca9cebd6975d76510bf21343c4436d.tar.gz
mediawikicore-724de1902aca9cebd6975d76510bf21343c4436d.zip
Merge "Stats: Fix "MediaWiki.PHPUnit.AssertEquals.Int" in UnitTestingHelperTest"
-rw-r--r--tests/phpunit/unit/includes/libs/Stats/UnitTestingHelperTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/phpunit/unit/includes/libs/Stats/UnitTestingHelperTest.php b/tests/phpunit/unit/includes/libs/Stats/UnitTestingHelperTest.php
index 38c5a71ffb9d..ff704b3fd2ca 100644
--- a/tests/phpunit/unit/includes/libs/Stats/UnitTestingHelperTest.php
+++ b/tests/phpunit/unit/includes/libs/Stats/UnitTestingHelperTest.php
@@ -95,11 +95,9 @@ class UnitTestingHelperTest extends TestCase {
public function testMin() {
$actual = $this->statsHelper->min( 'test{a="a"}' );
- // phpcs:ignore MediaWiki.PHPUnit.AssertEquals.Int
- $this->assertEquals( 1, $actual );
+ $this->assertSame( 1.0, $actual );
$actual = $this->statsHelperWithComponent->min( 'test{a="a"}' );
- //phpcs:ignore MediaWiki.PHPUnit.AssertEquals.Int
- $this->assertEquals( 1, $actual );
+ $this->assertSame( 1.0, $actual );
}
public function testNoFilter() {