Skip to content

Commit 0fdfbcd

Browse files
committed
fix tests
1 parent 819ecbb commit 0fdfbcd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: tests/PHPStan/Rules/PhpDoc/RequireExtendsDefinitionClassRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ public function testRule(): void
8484
'PHPDoc tag @phpstan-require-extends can only be used once.',
8585
178,
8686
],
87+
[
88+
'PHPDoc tag @phpstan-require-extends contains unknown class IncompatibleRequireExtends\SomeClass.',
89+
183,
90+
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
91+
],
92+
[
93+
'PHPDoc tag @phpstan-require-extends contains unknown class IncompatibleRequireExtends\NonExistentClass.',
94+
183,
95+
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
96+
],
8797
]);
8898
}
8999

Diff for: tests/PHPStan/Rules/PhpDoc/RequireExtendsDefinitionTraitRuleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ public function testRule(): void
4545
'PHPDoc tag @phpstan-require-extends can only be used once.',
4646
171,
4747
],
48+
[
49+
'PHPDoc tag @phpstan-require-extends contains unknown class IncompatibleRequireExtends\SomeClass.',
50+
192,
51+
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
52+
],
53+
[
54+
'PHPDoc tag @phpstan-require-extends contains unknown class IncompatibleRequireExtends\NonExistentClass.',
55+
192,
56+
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
57+
],
4858
]);
4959
}
5060

0 commit comments

Comments
 (0)