Use assertCount
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
bce032023e
commit
4e90e1efa9
@ -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\:
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user