Thanks Daimona!
In the spirit of automating everything including ourselves, I wrote a quick
python script using Daimon's regexes to run on codebases and it tries to
clean as much as possible for you.
https://gist.github.com/Ladsgroup/bfb4f4b66384efb8b8d3efea338b6e6b
(After running this, you should run composer fix to fix phpcs issues)
Feel free to change the gist and put it in comment, so I fix it.
On Fri, Oct 4, 2019 at 1:58 PM Daimona <daimona.wiki(a)gmail.com> wrote:
Hello all,
Following our migration away from HHVM, we're now also requiring PHPUnit 6+
[0]. Previously, we were allowing PHPUnit 4 as an option, but that version
was EOLed in February 2017 [1].
MediaWiki core provides a backward/forward-compatible layer [2] to allow
working with both versions. However, that trait will be emptied and removed
soon, partly because we want to move to PHPUnit 8.
Hence, if you have a local install of PHPUnit 4, you won't be able to use
it anymore. I also invite you to check whether any of your repos has an
explicit PHPUnit dependency in composer.json [3]. If it does, you can now
remove PHPUnit 4 from it.
Thank you for your collaboration!
[0] -
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/426058/
[1] -
https://phpunit.de/supported-versions.html
[2] -
https://gerrit.wikimedia.org/g/mediawiki/core/+/e26299b1d14feb341ff5752696f…
[3] - List of repos that do have it:
https://codesearch.wmflabs.org/search/?q=%22phpunit%5C%2Fphpunit%22%3A&…
--
https://meta.wikimedia.org/wiki/User:Daimona_Eaytoy
"Daimona" is not my real name -- he/him
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
Amir (he/him)