mediawiki-extensions-AbuseF.../tests/parserTests
Daimona Eaytoy e5746bbb0e parser: Add a BC option to get DNULL for unset variables
While checking a filter, if a variable is not set (e.g. added_lines for
an account creation), the VariableHolder will return a DNULL, rather
than a DUNDEFINED. This means that some filters will resume working, and
the WMF servers will stop getting AF warnings at a rate of 4 millions per
day. This also requires adjusting some tests to reflect the new
behaviour (which is actually the OLD behaviour, that filters had until
last year when we introduced the DUNDEFINED data type). It also requires
adjusting a check in the old parser, but that's not really relevant
because the plan is to remove the old parser before 1.36 is released
(see I0e75f334c7e0dfc1239f2e5f5f7d7452b0bbf29e).

Bug: T230256
Change-Id: I4d06303047397674c1edbfc32628f1bc83ac3340
2020-09-18 15:05:58 +02:00
..
arith.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
array-assignment.t Add a new class for the CachingParser's AST 2019-08-25 17:29:16 +00:00
array-comparisons.t Unbreak short circuit for arrays 2018-10-03 16:44:10 +02:00
array-statements.t Fix a bug in the return value of the CachingParser 2019-08-20 20:54:19 +02:00
array-statements2.t Fix a bug in the return value of the CachingParser 2019-08-20 20:54:19 +02:00
array-statements3.t Fix AbuseFilterCachingParser violating return type constraint 2019-12-04 18:27:46 +00:00
arrays.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
bool-assoc.t Fix the associativity of boolean logic operators 2016-11-06 20:30:07 -05:00
bug25373.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
cast.t Expand the list of types that can be cast to int 2019-11-07 15:14:17 +01:00
comment.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
concatenation.t Improve code coverage 2018-08-22 19:07:14 +02:00
conditional-shortcircuit.t Allow if without else 2019-08-20 19:36:14 +00:00
contains-all.t Allow dangling commas in variargs 2019-09-07 11:19:14 +02:00
contains-any.t Allow dangling commas in variargs 2019-09-07 11:19:14 +02:00
contains.t Improve code coverage 2018-08-22 19:07:14 +02:00
containsfunction.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
count.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
dundefined-parens.t Specialize empty AFPData types 2019-08-04 15:26:57 +00:00
dundefined.t Specialize empty AFPData types 2019-08-04 15:26:57 +00:00
eq.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
equals-to-any.t Strict type comparison 2020-06-27 15:55:57 +01:00
expn.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
float.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
get-matches.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
ifthen.t Allow if without else 2019-08-20 19:36:14 +00:00
in.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
ip-in-range.t Fix a test for IPUtils 2.0.0 2020-03-21 16:49:44 +00:00
lazyboolinvert.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyfunction.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazykeyword.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazypow.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazysum.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyunarys.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lcase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
length.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
like.t Fix double escaping in AFPData::keywordLike() 2014-07-11 14:56:42 -07:00
multipleconditionals.t Add test for multiple conditions inside conditionals 2019-08-12 18:18:05 +02:00
multipleskipbraces.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
mwexamples-arithmetic.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-arrays.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
mwexamples-bools.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-comparisons.t Sync parser tests with examples on mediawiki 2018-04-26 18:47:51 +02:00
mwexamples-keywords.t Improve code coverage 2018-08-22 19:07:14 +02:00
numbers.t Remove old number syntax 2020-02-25 23:38:19 +00:00
ord.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
prec.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rcount.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
regex.t Tweak coverage part 2 2019-04-13 19:26:01 +02:00
rmdoubles.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmspecials.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmwhitespace.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
sanitize.t Introduce sanitize() function 2018-06-03 16:37:23 -04:00
shortcircuit-and.t Clean AbuseFilterParserTests 2019-03-23 12:59:03 +01:00
shortcircuit-ops.t Clean AbuseFilterParserTests 2019-03-23 12:59:03 +01:00
shortcircuit-or.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
specialratio.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
string.t Tokenizer: don't strip backslashes from \x 2019-11-16 16:21:39 +01:00
strpos.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
substr.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
tern.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ucase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
utf8.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
vars.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest2.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest3.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00