Although https://bugs.mediawiki.org will redirect to our Phabricator
domain, let's just update this to reflect reality. But if there is
a specific reason to point users to the old domain and allow it to
redirect, please let me know.
Change-Id: Ib91de8f949eb1c1d718e0e460b1a317983df4ad9
Wikimedia production has had this for over a year now (since 880f23f482d1);
let's add this more generally, as it helps with migrations.
Change-Id: I8c4cd6e5ac5a87df157ffa90ca5b80e170bc95ff
Parsoid's ParserTest infrastructure uses wikimedia/alea, which is
why it appears in core's require-dev, and Parsoid has bumped their
dependency to 1.0.0.
We already have wikimedia/bcp-47-code in `require`; we don't need
it also in `require-dev`.
Change-Id: Ia10d7439709a5370214ce5e3b957ec09b759af27
This way upstream new breaking changes don't break CI, and when
we're happy to make an upgrade we have LibraryUpgrader as a bot
to make the changes to the 57 repos we currently have that each
specify PHPUnit in their composer.json file.
Change-Id: I6345f744a678dfb54c191ff5e23a6f5bb5df139f
PHPUnit made a breaking change in version 10, and added a warning about
the upcoming change in 9.6, which breaks our CI just like version 10
would. Pin version 9.5 until we’ve figured out how to address the
warning properly.
Bug: T328741
Change-Id: Ib5ed98e2c98de50deb94f8ea46e9122e7e836604
This implements Language::toBcp47Code(), an interface defined in the
wikimedia/bcp-47-code library, in order to facilitate interacting with
the parsoid library (which shouldn't know anything about
mediawiki-internal language codes).
Change-Id: Id09218ae97fd8167866064c0a3f6142696d66a8d
Exif has always been a part of our code for a long while,
but it seems it never made it into composer.json before
Change-Id: I0c3beaf17e123948dd1d918a340e207d9ecfcc19
This version, unlike 0.10.0, supports PHP 8.1. (The library isn’t used
in MediaWiki itself, but needs to be installed for WikibaseLexeme tests
to work, see change I3909fb3402 / commit 25e6dbdb1a.)
Bug: T319219
Change-Id: I4ca5caf3535d440cb22d336134b32d50e0c23440
This patch only adds and removes suppressions, which must be done in the
same patch as the version bump.
Bug: T298571
Change-Id: I4044d4d9ce82b3dae7ba0af85bf04f22cb1dd347
* DeprecatedHooksTest: Don't use assertContains().
* Replace uses of deprecated asserts:
- assertFileNotExists() -> assertFileDoesNotExist()
* Update hierarchy of MediaWikiPHPUnitResultPrinter, since ResultPrinter
is an interface in PHPUnit 9.
* Remove temporary forward-compat methods.
* Remove directories that don't exist from tests/phpunit/suite.xml, since
they now make PHPUnit exit:
- tests/phpunit/skins, it used to have SideBarTest, then moved to
tests/phpunit/includes/skins
- tests/phpunit/documentation, it used to have ReleaseNotesTest, then
moved to tests/phpunit/unit/documentation
* Update configuration with --migrate-configuration and reformat.
* Avoid redefining getMockBuilder() in
ActionModuleBasedHandlerTestTrait, use a @method annotation instead.
* In RCCacheEntryFactoryTest, avoid using internal PHPUnit logic for
HTML validation, and use native PHP methods instead. The code was
copied from Xml::load (moved to \Xml\Loader::load in PHPUnit 9) and
simplified for this use case.
Bug: T243600
Bug: T262076
Change-Id: I851b9158b73d0cfc315eed9d63b15c54b05895e3
This patch or its equivalent has been landed in REL1_35, REL1_36, REL1_37,
and REL1_38 for dropping PHP 7.2, and REL1_39 for dropping PHP 7.3 as well.
Now that Wikimedia servers have moved, it's time to do this for real.
Bug: T261872
Change-Id: I6627e456447ac6e3094b3bcd9c21753904170f64