You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Rules/PHPUnit/AssertSameWithCountRule.php
+6-2
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,9 @@ public function processNode(Node $node, Scope $scope): array
43
43
&& $right->name->toLowerString() === 'count'
44
44
) {
45
45
return [
46
-
RuleErrorBuilder::message('You should use assertCount($expectedCount, $variable) instead of assertSame($expectedCount, count($variable)).')->build(),
46
+
RuleErrorBuilder::message('You should use assertCount($expectedCount, $variable) instead of assertSame($expectedCount, count($variable)).')
47
+
->identifier('phpunit.assertCount')
48
+
->build(),
47
49
];
48
50
}
49
51
@@ -57,7 +59,9 @@ public function processNode(Node $node, Scope $scope): array
57
59
58
60
if ((newObjectType(Countable::class))->isSuperTypeOf($type)->yes()) {
59
61
return [
60
-
RuleErrorBuilder::message('You should use assertCount($expectedCount, $variable) instead of assertSame($expectedCount, $variable->count()).')->build(),
62
+
RuleErrorBuilder::message('You should use assertCount($expectedCount, $variable) instead of assertSame($expectedCount, $variable->count()).')
0 commit comments