From 4e90e1efa9fc0281b752085be5ff234ca46d54ef Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 14 Feb 2026 16:06:56 +0000 Subject: [PATCH] Use assertCount Signed-off-by: Kamil Tekiela --- phpstan-baseline.neon | 6 ------ tests/unit/Properties/Options/OptionsPropertyGroupTest.php | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 798c54529e..dc525d5357 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -16467,12 +16467,6 @@ parameters: count: 1 path: tests/unit/PluginsTest.php - - - message: '#^You should use assertCount\(\$expectedCount, \$variable\) instead of assertSame\(\$expectedCount, \$variable\-\>count\(\)\)\.$#' - identifier: phpunit.assertCount - count: 1 - path: tests/unit/Properties/Options/OptionsPropertyGroupTest.php - - message: ''' #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: diff --git a/tests/unit/Properties/Options/OptionsPropertyGroupTest.php b/tests/unit/Properties/Options/OptionsPropertyGroupTest.php index 418d9ffd8c..4e77eb407c 100644 --- a/tests/unit/Properties/Options/OptionsPropertyGroupTest.php +++ b/tests/unit/Properties/Options/OptionsPropertyGroupTest.php @@ -71,6 +71,6 @@ class OptionsPropertyGroupTest extends AbstractTestCase $this->stub->addProperty($propertyItem); $propertyItem2 = new BoolPropertyItem(); $this->stub->addProperty($propertyItem2); - self::assertSame(2, $this->stub->count()); + self::assertCount(2, $this->stub); } }