- ๐ซ๐ทFrance fgm Paris, France
I know this issue is "won't fix", but adding it here for anyone trying to use coverage attributes in PHPunit 11: the
#[CoverFunction(string $functionName)]
attribute is only available at the class level, not method level (WTF ?), per https://docs.phpunit.de/en/11.2/attributes.html#coversfunction so it cannot replace the
@covers
annotation.