Page MenuHomePhabricator

Replace withConsecutive() in PHPUnit tests to support PHPUnit 10
Open, Needs TriagePublic

Description

PHPUnit 10 removes the function withConsecutive() which is used when building mock objects
It is deprecated since PHPUnit 9.6 but without warning.

This needs replacement in extensions
There are replacements done via T342110: Upgrade to PHPUnit 9.6, but there are still or new usages.

Do not use a replacement with getInvocationCount() (T426504)

Event Timeline

Change #1297202 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] tests: Replace use of withConsecutive() for PHPUnit 10 compatibility

https://gerrit.wikimedia.org/r/1297202

Change #1297202 merged by jenkins-bot:

[mediawiki/core@master] tests: Replace use of withConsecutive() for PHPUnit 10 compatibility

https://gerrit.wikimedia.org/r/1297202