-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
#[CoversNamespace]
and #[UsesNamespace]
#4463
Comments
#[CoversNamespace]
and #[UsesNamespace]
@spriebsch Do you still think that this would be useful? |
I'd say this conversation is way beyond what should be discussed in ticket comments. |
Hi! I'd be interested into this feature. Would you accept a PR about it? |
I do not see how this can be implemented before sebastianbergmann/php-code-coverage#519 has been implemented. |
this issue is pretty old, is there a blocker here? or does it needs a huge effort to be fixed? |
I came here to open this issue as I think it's a useful feature. My use case revolves around component level testing for parser type classes which, for example, read a data structure from json/yaml and parse it into a set of data objects. The test should produce coverage for all the data objects as well as the parser class itself. |
We have many, many small classes with specific jobs. On top of this, half of the classes we've imported are only imported to use inside |
Suggested by @spriebsch:
@covers-namespace vendor\foo
should cover all units of code where the fully qualified name of the unit begins withvendor\foo
@uses-namespace vendor\foo
should allow all units of code where the fully qualified name of the unit begins withvendor\foo
The text was updated successfully, but these errors were encountered: