InvocationMocker::withConsecutive() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10

Created on 29 August 2022, over 1 year ago
Updated 6 February 2024, 2 months ago

Problem/Motivation

InvocationMocker::withConsecutive() is removed from PHPUnit 10. It was previously meant to be deprecated in that branch but this commit actually removed it.

In PHPUnit 9.6, using withConsecutive() will yield a deprecation error, https://github.com/sebastianbergmann/phpunit/issues/5035

Therefore the use of the method needs to be replaced.

See https://github.com/sebastianbergmann/phpunit/issues/5063

Steps to reproduce

Proposed resolution

Use this approach. See #61 ๐Ÿ“Œ InvocationMocker::withConsecutive() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10 RTBC -> #63.

Also considered, https://github.com/symfony/symfony/commit/431b6ef44c57a45c36146dd440a5f7...

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Closed: outdated

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated about 3 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

Live updates comments and jobs are added and updated live.

Missing content requested by

๐Ÿ‡ฆ๐Ÿ‡บAustralia dpi
5 months ago
Sign in to follow issues

Merge Requests

Comments & Activities

Production build https://api.contrib.social 0.62.1