phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

Deprecated MockBuilder::setMethods does not throw a warning in PHPUnit 9

Open mondrake opened this issue 3 years ago • 0 comments

Q A
PHPUnit version 9.5
PHP version n/a
Installation Method n/a

Summary

Working on adjusting Drupal for PHPUnit 10, I realized MockBuilder::setMethods is removed from PHPUnit 10. Unlike other methods deprecated in PHPUnit 8 and 9, there's no warning thrown about the deprecation.

Since in Drupal we rely on deprecation errors being triggered, so far this deprecation was missed from any conversion.

Current behavior

n/a

How to reproduce

n/a

Expected behavior

I suppose a Warning should be thrown in PHPUnit 9, on top of the annotated deprecation.

mondrake avatar Sep 11 '21 13:09 mondrake