Skip to content

Commit 0ef2bb6

Browse files
Add test
1 parent 7087804 commit 0ef2bb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Type/WebMozartAssert/data/impossible-check.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ public function testStartsWith(string $a): void
127127
Assert::startsWith("value", "bix");
128128
}
129129

130+
/** @param class-string<Bar> $a */
131+
public function implementsInterface2(string $a): void
132+
{
133+
Assert::implementsInterface($a, Bar::class);
134+
Assert::implementsInterface(Bar::class, Bar::class);
135+
}
136+
130137
}
131138

132139
interface Bar {};

0 commit comments

Comments
 (0)