rectorphp / rector-phpunit

Rector upgrade rules for PHPUnit
http://getrector.com
MIT License
61 stars 46 forks source link

Set `PHPUNIT_100` and `AssertIssetToSpecificMethodRector::refactorPropertyFetchNode()` should be mutually exclusive #336

Closed phansys closed 2 weeks ago

phansys commented 2 weeks ago

Assertions that operate on class/object properties were removed in PHPUnit 10.

https://github.com/rectorphp/rector-phpunit/blob/e23a9b57b934e2ecc1c0ef37dab3a980ec11d4d3/rules/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector.php#L108

TomasVotruba commented 2 weeks ago

Indeed, thanks for reporting. We'll should move this rule into version-based itself. The method names in PHPUnit are changing too often :)