'Is there a way to detect unused @uses annotations in unit tests
Over time, refactoring of my production code renders @uses in my PHPUnit tests obsolete, i.e., they refer to code that isn't actually used by the tests anymore. But PHPUnit won't complain about it. Is there a way to detect this unused code as a matter of cruft removal?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
