phpunit
phpunit copied to clipboard
Deprecated MockBuilder::setMethods does not throw a warning in PHPUnit 9
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.