dg / bypass-finals

Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery.
Other
487 stars 30 forks source link

Failed infection test if bypass-final is enabled #29

Closed Pablossoo closed 2 years ago

Pablossoo commented 3 years ago

Hello, I am using the library for infection testing https://infection.github.io/guide/ and if the bypass-final library is enabled the infections are not working as expected - the coverage test is not working properly. example; the case where bypass is disabled; 100% coverage of infection

the case where the bypass is enabled; 20-30% coverage.

Could you please take a look at what might be wrong?

JanTvrdik commented 3 years ago

https://github.com/dg/bypass-finals/issues?q=infection

dkarlovi commented 2 years ago

Duplicate of #9.

dkarlovi commented 2 years ago

9 was closed, this can be closed too AFAIK.