Use assertCount

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2026-02-14 16:06:56 +00:00
parent bce032023e
commit 4e90e1efa9
2 changed files with 1 additions and 7 deletions

View File

@ -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\:

View File

@ -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);
}
}