rector-phpunit icon indicating copy to clipboard operation
rector-phpunit copied to clipboard

Rector upgrade rules for PHPUnit

Results 6 rector-phpunit issues
Sort by recently updated
recently updated
newest added

I saw `WithConsecutiveRector` added in #246 to the PHPUnit 10 rule set, and was keen to use it. But unfortunately, it's not working. I took the example from `tests/Rector/StmtsAwareInterface/WithConsecutiveRector/Fixture/some_class.php.inc` and...

Hi, I noticed some `@group …` directives not being adapted and after a bit debugging I notice that in `\Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector::refactor` the call to `getTagsByName` returned `DoctrineAnnotationTagValueNode` instead of `GenericTagValueNode`. But...

- **add array spread fixture** - **Add spread operator support**

While running PHPStan on newer PHPUnit, we get reporting of missing parent call in setup. It would be great to have a rule to handle this change: ```diff protected function...

PHPUnit 9.6 and earlier ar still widely used in the community, but does not support PHPUnit Annotations. PHPUnit 10 added support for Attributes and deprecated Annotations PHPUnit 12 will remove...

Hey @maks-rafalko In [your implementation](https://github.com/rectorphp/rector-phpunit/pull/319#issuecomment-2017833481) `AddCoversClassAttributeRector` rule, you mention the (not-yet? 🤞 ) supported case of different subnamespaces. We have a case where the classes are: `BoundedContext\Sub\Domain\ClassName` And its tests...