wiki.techinc.nl/tests/phpunit/includes
mainframe98 7299aed7a5 tests: Allow overridable data providers to be static
This uses some reflection to identify if the data provider is static or
not. If it isn't, a deprecation notice is emitted. This doesn't fail the
tests, but is still printed in the output.

To facilitate this, the relevant abstract method has been uncommented,
as PHP does not like it when function signatures do not match up.

This approach means that tests in extensions or skins do not immediately
break when making data providers static. Instead, they can do so at
their own pace.

Bug: T332865
Change-Id: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
2023-05-16 16:28:43 +01:00
..
actions Make $wgHooks trigger deprecation warnings. 2023-03-29 07:29:37 +00:00
api Merge "Make ApiOptions unavailable to temporary users" 2023-03-28 15:52:55 +00:00
auth tests: Allow overridable data providers to be static 2023-05-16 16:28:43 +01:00
block Clean up IDatabase::deleteJoin() return value assumptions 2023-03-24 22:26:08 +00:00
cache tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
changes tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
changetags tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
collation tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
config Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
content Merge "Allow setting a ParserOption to generate Parsoid HTML" 2023-03-27 08:08:56 +00:00
db rdbms: various fixes to LoadBalancer::reconfigure 2023-03-13 14:23:04 +11:00
debug tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
deferred build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-11 19:04:09 +00:00
diff tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
editpage tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
exception tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
externalstore tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
filebackend Fix some PHPStorm inspections (#1) 2023-03-25 00:19:33 +00:00
filerepo Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
GlobalFunctions Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
HookContainer Fix some PHPStorm inspections (#1) 2023-03-25 00:19:33 +00:00
htmlform tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
http Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
import Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
installer
interwiki Fix more PHPStorm inspections (#2) 2023-03-25 00:19:58 +00:00
jobqueue Allow setting a ParserOption to generate Parsoid HTML 2023-03-26 21:46:05 -04:00
language Fix more PHPStorm inspections (#2) 2023-03-25 00:19:58 +00:00
languages tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
libs Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
linkeddata tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
linker tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
logging tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
mail Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
media Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
Message tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
Navigation Remove deprecated pager methods/classes 2023-03-22 15:23:56 +00:00
objectcache rdbms: Rename internal ServerInfoHolder to ServerInfo 2023-03-07 23:36:39 +00:00
page Merge "ParserOutputAccess: Fork primary and secondary caches for parsoid" 2023-03-27 08:09:07 +00:00
pager tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ParamValidator/TypeDef tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
parser parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words 2023-03-28 22:35:17 +00:00
password tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
Permissions tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
poolcounter tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
preferences tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
profiler profiler: Add ProfilingContext class 2023-03-23 00:08:49 +00:00
rcfeed Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
registration Treat $wgHooks as a regular setting 2023-03-09 10:20:44 +01:00
ResourceLoader ResourceLoader: Raise MW JavaScript startup requirement to ES6 2023-03-30 14:26:05 +01:00
Rest build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-11 19:04:09 +00:00
Revision Allow setting a ParserOption to generate Parsoid HTML 2023-03-26 21:46:05 -04:00
search Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
session Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
shell tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
site tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
skins Fix even more PHPStorm inspections (#3) 2023-03-25 00:30:15 +00:00
sparql
specialpage Fix some PHPStorm inspections (#1) 2023-03-25 00:19:33 +00:00
specials Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
Storage Allow setting a ParserOption to generate Parsoid HTML 2023-03-26 21:46:05 -04:00
title tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
upload tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
user Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
utils tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
watcheditem tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
AutoLoaderTest.php AutoLoader: Drop support for $wgAutoloadAttemptLowercase 2022-12-04 02:38:57 -05:00
CategoryTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
CommentStoreCommentTest.php
CommentStoreTest.php Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
EditPageConstraintsTest.php Fix more PHPStorm inspections (#2) 2023-03-25 00:19:58 +00:00
EditPageTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ExportTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
ExtraParserTest.php Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
FauxRequestTest.php Reorg: Move some of request related classes to MediaWiki/Request 2022-10-28 10:15:31 +00:00
GitInfoTest.php
HooksTest.php Make $wgHooks trigger deprecation warnings. 2023-03-29 07:29:37 +00:00
HtmlTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
LinkerTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
LinkFilterTest.php Reorg: Move LinkFilter to ExternalLinks 2023-03-01 22:08:29 +01:00
MediaWikiServicesTest.php Treat $wgHooks as a regular setting 2023-03-09 10:20:44 +01:00
MediaWikiTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Fix some PHPStorm inspections (#1) 2023-03-25 00:19:33 +00:00
MessageTest.php build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-11 19:04:09 +00:00
MockServiceWiring.php
MovePageTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
MultiHttpClientTest.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
MWTimestampTest.php Remove deprecated MWTimestamp::getHumanTimestamp 2022-11-03 17:00:39 +00:00
OutputPageTest.php Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
SampleTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
SiteStatsTest.php SiteStats: Remove unneeded SiteStats::salvageIncorrectRow 2023-02-13 21:23:40 +01:00
StatusTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
TemplateCategoriesTest.php objectcache: Remove $wgMainWANCache and $wgWANObjectCaches 2023-03-07 22:47:04 +00:00
TestUser.php
TestUserRegistry.php phpunit: improve isolation by calling User::clearInstanceCache 2022-12-04 15:21:30 +01:00
TimeAdjustTest.php Use UserTimeCorrection in Language::userAdjust 2023-01-29 14:12:32 +01:00
TitleTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
TitleUrlTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
TrackingCategoriesTest.php Reorg: Move category-related classes from includes/ to Category/ 2023-02-09 20:18:54 +01:00
WebRequestTest.php tests: Handle dynamic created properties on test classes 2023-01-13 21:03:42 +00:00
WikiMapTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
XmlTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00