php-code-coverage
php-code-coverage copied to clipboard
@coversFile and @coversDirectory annotations
Sometimes a test covers code that is not a class, for example a template file or a configuration file. It is currently not possible to explicitly collect coverage data for such files, especially when the forceCoversAnnotation option is used.
I propose two new annotations @coversFile and @coversDirectory for that use-case.
Also see https://github.com/sebastianbergmann/phpunit/pull/18#issuecomment-679695. @dharkness