mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 963221ad6d Even better handling of DUNDEFINED
Ensure that the variable isn't set before marking it as DUNDEFINED:
that's only for when we cannot use a default, but if the variable is set
we already have one. Most notably, this fixes conditionals handling: right
now, if you have a conditional with an assignment in both
branches, the variable will be undefined. That's obviously wrong, so
it's fixed in this patch.
Plus: catch only AFPExceptions in a test to avoid unintentionally
catching the assert exception; simplify some assignments using wfSetVar.

Depends-On: I446a307e5395ea8cc8ec5ca5d5390b074bea2f24
Change-Id: I8e7f7710b8cb37ada8531b631456a3ce7b27ee45
2019-08-20 19:17:30 +00:00
..
AbuseFilterConsequencesTest.php Move "block-autopromote" key from $wgMainStash to 'db-replicated' 2019-08-07 01:09:13 +00:00
AbuseFilterParserTest.php Even better handling of DUNDEFINED 2019-08-20 19:17:30 +00:00
AbuseFilterParserTestCase.php Add test for multiple conditions inside conditionals 2019-08-12 18:18:05 +02:00
AbuseFilterSaveTest.php Simplify action arrays 2019-07-05 10:00:48 +02:00
AbuseFilterTest.php Add a new class for methods related to running filters 2019-07-23 19:06:27 +00:00
AbuseFilterTokenizerTest.php Tokenizer caching back to APC 2019-05-28 19:48:26 +02:00
AFPDataTest.php Move keywords handlers to the Parser 2019-08-12 14:29:56 +02:00