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

Created on 29 August 2022, over 2 years ago
Updated 13 August 2024, 4 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 1 day ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.

Missing content requested by

🇦🇺Australia dpi
about 1 year ago
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024