aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/suite.xml
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2021-03-20 15:48:35 +0100
committerDaimona Eaytoy <daimona.wiki@gmail.com>2021-03-20 15:55:26 +0100
commit8176dac4a64823b2e4888e2c61ae08951211eaf8 (patch)
treeebf3e5ce84412c9c8dab2958c9367ae9e00d39a3 /tests/phpunit/suite.xml
parentd1d5a4bc55f0a9e7ff8e3034c78b2347c3132504 (diff)
downloadmediawikicore-8176dac4a64823b2e4888e2c61ae08951211eaf8.tar.gz
mediawikicore-8176dac4a64823b2e4888e2c61ae08951211eaf8.zip
phpunit: Remove MediaWikiPHPUnitTestListener
The two hooks were moved to a PHPUnit extensions which uses hooks. The rest was simply deleted. The reason for this change is that TestListener was removed in PHPUnit 9, with PHPUnit hooks as replacement. No hooks exist for startSuite/endSuite, plus we should avoid adding too much functionality: if the output of PHPUnit isn't clear, that should be reported upstream. Additionally, PHPUnit hooks were also deprecated in PHPUnit 10, which means that extending PHPUnit becomes more and more difficult. As such, the two hooks will be hard-deprecated & removed soon. Removing all these wfDebugLog and other function calls should also hopefully speed up the suite. Bug: T243600 Bug: T225730 Change-Id: I2b67cd0074aca4b0ea76696ce9f24be68f5f88f8
Diffstat (limited to 'tests/phpunit/suite.xml')
-rw-r--r--tests/phpunit/suite.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/phpunit/suite.xml b/tests/phpunit/suite.xml
index 48907ce7ec49..cfa01038ced6 100644
--- a/tests/phpunit/suite.xml
+++ b/tests/phpunit/suite.xml
@@ -92,5 +92,6 @@
</listeners>
<extensions>
<extension class="MediaWikiLoggerPHPUnitExtension" />
+ <extension class="MediaWikiHooksPHPUnitExtension" />
</extensions>
</phpunit>