mediawiki-extensions-AbuseF.../tests
Daimona Eaytoy 1bdf4e5351 Rewrite the VariableHolder code to translate deprecated variables
The current code was more of a subpar, temporary solution. However, we
need a stable solution in case more variables will be deprecated in the
future (T213006 fixes the problem for the past deprecation round). So,
instead of setting a hacky property, directly translate all variables
when loading the var dump. This is not only stable, but has a couple
micro-performance advantages:
 - Calling getDeprecatedVariables happens only once when loading the
   dump, and not every time a variable is accessed
 - No checks are needed when retrieving a variable,
   because names can always assumed to be new

Some simple benchmarks reveals a runtime reduction of 8-15% compared to
the old code (8% when it had varsVersion = 2, 15% for varsVersion = 1),
which comes at no cost together with increased readability and
stability. It ain't much, but it's honest work.

Change-Id: Ib32a92c4ad939790633aa63eb3ef8d4629488bea
2020-09-29 15:06:14 +00:00
..
parserTests parser: Add a BC option to get DNULL for unset variables 2020-09-18 15:05:58 +02:00
parserTestsEquivset Move parser tests to /unit 2019-08-28 16:36:37 +00:00
phpunit Rewrite the VariableHolder code to translate deprecated variables 2020-09-29 15:06:14 +00:00
selenium eslint: Update to eslint-config-wikimedia 0.16.0 2020-06-08 21:17:50 -04:00