rectorphp / rector-phpunit

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

Replace deprecated methods from phpunit issue 5062 #284

Closed eerison closed 8 months ago

eerison commented 8 months ago

On issue https://github.com/sebastianbergmann/phpunit/issues/5062 was deprecated few methods.

then I am applying the replacement for methods that has other method to substitute.

you can check here in this file: https://github.com/sebastianbergmann/phpunit/blob/9.6/src/Framework/TestCase.php

samsonasik commented 8 months ago

Thank you @eerison

Wirone commented 7 months ago

Is this PR valid, though? Considering this comment you can't just change e.g. expectDeprecationMessage to expectExceptionMessage, because these errors won't be converted into exceptions.