php-mock-phpunit icon indicating copy to clipboard operation
php-mock-phpunit copied to clipboard

Deprecation warnings

Open esschul opened this issue 1 year ago • 3 comments

When invoking getFunctionMock I am getting the following deprecation warnings.

  • MockBuilder::addMethods() is deprecated and will be removed in PHPUnit 12 without replacement.
  • MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.

esschul avatar May 16 '24 07:05 esschul

@esschul thanks, see: https://github.com/php-mock/php-mock-phpunit/issues/70

michalbundyra avatar May 16 '24 07:05 michalbundyra

Thanks!

esschul avatar May 16 '24 07:05 esschul

Maybe lets leave it open, as it will be easier for others to spot the issue. Still if someone will provide the fix now I can accept it, but I am not going to work on it separately before we see PHPUnit 12.

Thanks

michalbundyra avatar May 16 '24 08:05 michalbundyra

@michalbundyra, could you please have a look at the linked draft PR and let me know what you think? Thanks!

crocodele avatar Mar 06 '25 19:03 crocodele

Done in #75, thanks @crocodele !

michalbundyra avatar Mar 08 '25 19:03 michalbundyra