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)
- https://codesearch.wmcloud.org/search/?q=withConsecutive&files=phpunit
- https://github.com/sebastianbergmann/phpunit/issues/4564
- mediawiki/core - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1017503