wiki.techinc.nl/tests/phpunit/includes/debug
Umherirrender 0099099bb0 tests: Change expectDeprecation to expectDeprecationAndContinue
TestCase::expectDeprecation() is deprecated in PHPUnit 10,
use mediawiki own MediaWikiTestCaseTrait::expectDeprecationAndContinue()
for this case. This avoids the trigger_error call and isolate the
deprecation check into MWDebug class.

The continue part is also helpful in StubGlobalUserTest, where after the
first deprecation access more code exists, that was not executed as
PhpUnit 9 converts deprecations to exceptions.
In RCFeedTest the exception needs to be catched as the code proceed
after the deprecation notice is emitted.

Bug: T342110
Change-Id: Iecf827bec0d5215fd21bbb20b84caf928ee108a0
2023-07-18 16:35:43 +00:00
..
logger tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
DeprecationHelperTest.php tests: Change expectDeprecation to expectDeprecationAndContinue 2023-07-18 16:35:43 +00:00
MWDebugTest.php
TestDeprecatedClass.php
TestDeprecatedSubclass.php