- Issue created by @mstrelan
- Merge request !7957Issue #3445900: CoversAnnotationWithValueToAttributeRector → (Open) created by mstrelan
- Status changed to Needs work
9 months ago 6:30am 8 May 2024 - 🇦🇺Australia mstrelan
Seemed to work ok for
@coversDefaultClass
, not sure@covers
worked correctly. We probably also want to import the classes rather than using their FQCN in the attributes. - Status changed to Closed: won't fix
8 months ago 3:24pm 20 May 2024 - 🇮🇹Italy mondrake 🇮🇹
As spotted over in #3417066-120: Upgrade PHPUnit to 10, drop Symfony PHPUnit-bridge dependency → , we can't mix PHPUnit attributes and annotations, we will have to convert them all at once unfortunately. So we need to proceed by group of files and not by annotation.
- 🇫🇷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.