Skip to content

Commit

Permalink
MixinRule - test incorrect case
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 2, 2020
1 parent c8a27e2 commit 3bc8d7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/PHPStan/Rules/Classes/MixinRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public function testRule(): void
'Generic type MixinRule\Consecteur<MixinRule\Foo> in PHPDoc tag @mixin does not specify all template types of class MixinRule\Consecteur: T, U',
76,
],
[
'Class MixinRule\Foo referenced with incorrect case: MixinRule\foo.',
84,
],
]);
}

Expand Down
8 changes: 8 additions & 0 deletions tests/PHPStan/Rules/Classes/data/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ class Sit
{

}

/**
* @mixin foo
*/
class Amet
{

}

0 comments on commit 3bc8d7f

Please sign in to comment.