Skip to content

Deprecate setMethods() #4775

@mondrake

Description

@mondrake
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.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions