Skip to content
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

@covers / @uses annotations for interfaces #3195

Closed
1 of 2 tasks
sebastianbergmann opened this issue Jul 5, 2018 · 3 comments
Closed
1 of 2 tasks

@covers / @uses annotations for interfaces #3195

sebastianbergmann opened this issue Jul 5, 2018 · 3 comments
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata Issues related to attributes and annotations type/enhancement A new idea that should be implemented

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Jul 5, 2018

Suggested by @spriebsch:

  • @covers AnInterface should raise a warning (as there is no point in trying to cover an interface)
  • @uses AnInterface should allow any implementation of the specified interface
@sebastianbergmann sebastianbergmann added the type/enhancement A new idea that should be implemented label Jul 5, 2018
@sebastianbergmann sebastianbergmann added this to the PHPUnit 7.3 milestone Jul 5, 2018
@sebastianbergmann sebastianbergmann changed the title Annotation for specifying that a test covers a class and its subclasses @covers annotation and interfaces Jul 9, 2018
@sebastianbergmann sebastianbergmann changed the title @covers annotation and interfaces @covers and @uses annotations and interfaces Jul 9, 2018
@sebastianbergmann
Copy link
Owner Author

@uses AnInterface probably depends on sebastianbergmann/php-code-coverage#519

sebastianbergmann added a commit that referenced this issue Jul 10, 2018
@garak
Copy link

garak commented Oct 5, 2018

Since 7.4 is out, I guess that this should be moved to milestone 7.5

@sebastianbergmann sebastianbergmann removed this from the PHPUnit 7.5 milestone Dec 4, 2018
@stale stale bot added the stale label Jul 2, 2019
Repository owner deleted a comment from stale bot Jul 2, 2019
@sebastianbergmann sebastianbergmann added the feature/code-coverage Issues related to code coverage (but not php-code-coverage) label Feb 12, 2020
@sebastianbergmann sebastianbergmann changed the title @covers and @uses annotations and interfaces @covers / @uses annotations for interfaces Sep 23, 2020
@sebastianbergmann sebastianbergmann added the feature/metadata Issues related to attributes and annotations label Jun 3, 2021
@sebastianbergmann
Copy link
Owner Author

Superseded by #5734.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/code-coverage Issues related to code coverage (but not php-code-coverage) feature/metadata Issues related to attributes and annotations type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants