-
Notifications
You must be signed in to change notification settings - Fork 100
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
is the @uses annotation for tests correct? #1022
Comments
Docblock annotations are deprecated in phpunit 11 and the attribute for coverage can only be used at class level, not method level, so we should simply drop those annotations. |
The |
I guess we can use the CoversClass attribute then. |
See also dereuromark/cakephp-ide-helper#351 |
The |
I see, so the primary use case was IDE, not coverage intended, and makes sense. |
Description
the docs state that "The
@uses
annotation specifies code which will be executed by a test, but is not intended to be covered by the test."https://docs.phpunit.de/en/10.5/annotations.html#uses
currently bake adds
@uses
ControllerName to a controller test case. Shouldn't the@covers
attribute be used instead as the primary use case for a controller test is testing the controller itself?Bake Version
3.2.0
PHP Version
8.4
The text was updated successfully, but these errors were encountered: