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: tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php
+27
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,18 @@ public function testExtension(): void
84
84
'Call to static method Webmozart\Assert\Assert::allContains() with array<non-empty-string> and \'foo\' will always evaluate to true.',
85
85
98,
86
86
],
87
+
[
88
+
'Call to static method Webmozart\Assert\Assert::implementsInterface() with class-string<WebmozartAssertImpossibleCheck\Bar>|WebmozartAssertImpossibleCheck\Bar and \'WebmozartAssertImpossibleCheck\\\Bar\' will always evaluate to true.',
89
+
105,
90
+
],
91
+
[
92
+
'Call to static method Webmozart\Assert\Assert::implementsInterface() with class-string<WebmozartAssertImpossibleCheck\Bar> and \'WebmozartAssertImpossibleCheck\\\Bar\' will always evaluate to true.',
93
+
108,
94
+
],
95
+
[
96
+
'Call to static method Webmozart\Assert\Assert::implementsInterface() with mixed and \'WebmozartAssertImpossibleCheck\\\Foo\' will always evaluate to false.',
97
+
111,
98
+
],
87
99
]);
88
100
}
89
101
@@ -175,6 +187,21 @@ public function testBug8(): void
175
187
]);
176
188
}
177
189
190
+
publicfunctiontestBug17(): void
191
+
{
192
+
$this->analyse([__DIR__ . '/data/bug-17.php'], [
193
+
[
194
+
'Call to static method Webmozart\Assert\Assert::implementsInterface() with \'DateTime\' and \'DateTimeInterface\' will always evaluate to true.',
0 commit comments