-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[Test] Not Suppressing PossiblyUnusedMethod #144
Labels
enhancement
New feature or request
Comments
Tigerman55
changed the title
Test Attribute Not Suppressing PossiblyUnusedMethod
#[Test] Not Suppressing PossiblyUnusedMethod
Dec 21, 2023
I have same issue: Examplesthrows #[Test]
public function it_gets_orm_from_facade_when_container_has_orm(): void
{
...
} works: /**
* @test
*/
#[Test]
public function it_gets_orm_from_facade_when_container_has_orm(): void
{
} |
Duplicate issue: #131 |
The fix would be somewhere near these lines: psalm-plugin-phpunit/src/Hooks/TestCaseHandler.php Lines 155 to 160 in e344eaa
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I use the attribute
#[Test]
instead oftestSomething()
, the errorPossiblyUnusedMethod
is not suppressed.The text was updated successfully, but these errors were encountered: