Page MenuHomePhabricator

Test failures on PHPUnit 9.5: "Error: Class 'PHPUnit\Framework\Constraint\ArraySubset' not found"
Closed, ResolvedPublic


PHPUnit tests are failing on master in the WikimediaEvents extension: "Error: Class 'PHPUnit\Framework\Constraint\ArraySubset' not found"

As seen on

Caused by the PHPUnit 9.5 upgrade in MediaWiki core (T243600).

Event Timeline

matmarex triaged this task as Unbreak Now! priority.Oct 8 2022, 7:40 PM

This is blocking merges in WikimediaEvents, and extensions that depend on it.

So, we addressed this a while ago in T244095 because we knew it was coming... But it didn't account for people using the ArraySubset constraint directly...

Change 840339 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/WikimediaEvents@master] tests: Avoid ArraySubset, removed in PHPUnit 9

Change 840339 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] tests: Avoid ArraySubset, removed in PHPUnit 9

Daimona removed a project: Patch-For-Review.