Replies: 1 comment 1 reply
-
Can I ask you to provide an example/commit e2e test/repo where it works woth annotation but doesn't work with an attribute? Personally I didn't use it so don't know if there is a bug |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've a project I'm looking at to switch from phpunit
@covers
annotations to their new attributes, specifically\PHPUnit\Framework\Attributes\CoversClass
.However the attribute syntax does not support
ClassUnderTest::method
, whilst@covers
did. I use this a lot to "contain" the mutation impact area.After the switch I get a lot more escaped mutants and I think it's due to this change now.
Does infection support
CoversClass
? If yes, is there a solution? Would I need to useCoversClass
and@covers
to still support the::method
syntax.Currently I'm not sure if it's my fault or not, I'm still figuring out things.
thx
Beta Was this translation helpful? Give feedback.
All reactions