TestCase::getMockClass() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10

Created on 20 November 2022, about 2 years ago
Updated 16 January 2023, almost 2 years ago

Problem/Motivation

TestCase::getMockClass() is removed from PHPUnit 10.

In PHPUnit 9.6, using getMockClass() will yield a deprecation error,

Therefore the use of the method needs to be replaced.

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

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

9.5

Component
PHPUnit 

Last updated about 23 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024