Page MenuHomePhabricator

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

Description

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

As seen on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/840328: https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php74-noselenium-docker/59438/console

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

https://gerrit.wikimedia.org/r/840339

Change 840339 merged by jenkins-bot:

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

https://gerrit.wikimedia.org/r/840339

Daimona removed a project: Patch-For-Review.