Closed
Description
It would be useful to allow skipping analysis of @legacy
annotated PHPUnit test methods test in PHPUnit.
Drupal runs deprecation tests via PHPUnit and the Symfony's PHPUnit bridge. Current policy for runtime deprecated code is to write a @legacy
annotated test that explicitly contains calls to deprecated code. PHPStan would now report these calls as errors, which is a duplicated check vs. existing tools. We cannot ignore entire files since it may well be that normal and deprecation tests are part of the same test class.
See also:
Metadata
Metadata
Assignees
Labels
No labels