Page MenuHomePhabricator

PHPUnit warning noise from ClientParserOutputDataUpdaterTest (Wikibase)
Closed, ResolvedPublic3 Estimated Story Points

Description

These are making it hard for developers to find what the real issue is when they look at a build failure, especially if they're less experienced with PHPUnit or MW.

These warnings weren't there until a few weeks ago, which suggests it is either a recent regression due to a change in the test suite, or a pre-existing mistake that the recent PHPUnit upgrade started noticing and warning us about.

13) Wikibase\Client\Tests\ClientParserOutputDataUpdaterTest::testUpdateItemIdProperty
The optional $checkForObjectIdentity parameter of assertContains() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertContainsEquals() instead.

/workspace/src/maintenance/doMaintenance.php:99

Acceptance Criteria:

  • All tests in Wikibase\Client\Tests\ClientParserOutputDataUpdaterTest pass and do not generate PHPUnit warnings

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

All the test in Wikibase\Client\Tests\ClientParserOutputDataUpdaterTest pass and do not generate PHPUnit warnings on my instance.

The fix => Change-Id: Id1d30691a1a0793fabfb07b2ae59ec96c9465131