wiki.techinc.nl/tests/parser
WMDE-Fisch ad10a5c5f0 PaserTestRunner: Avoid json_decode deprecation warning
json_decode now emits a deprecation warning when called with null.
Before it would just return null anyway in these cases so I just
introduced a way around that avoids calling the mehod in the frist
place.

Bug: T382590
Change-Id: I47b7aca331a405bb3d2865cc280ef3ced537f84b
(cherry picked from commit b2fad75337256aaabd6e892bdd4bea8f86b47d5c)
2024-12-26 23:49:11 +00:00
..
AnsiTermColorer.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
badCharacters.txt Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
comments.txt Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
DbTestPreviewer.php Use expression builder to avoid IDatabase::addQuotes 2024-07-18 18:44:34 +00:00
DbTestRecorder.php Pass function name to IDatabase functions 2024-09-19 21:02:52 +02:00
definitionLists.txt Update name & email for bvibber 2024-02-08 17:02:16 -08:00
DjVuSupport.php
DummyTermColorer.php maintenance: Move MWTerm classes to /tests/parser/ 2022-03-24 21:01:14 +00:00
editTests.php Add namespace to maintenance/includes classes 2024-10-09 11:02:09 -04:00
extLinks.txt Parser tests: add additional options to test ParserOutput metadata 2024-09-13 14:42:27 -04:00
fuzzTest.php tests: Use namespaced ParserOptions 2024-10-16 01:35:06 +01:00
headings.txt Sync up core repo with Parsoid 2024-09-12 18:58:43 +03:00
indentPre.txt Sync up core repo with Parsoid 2024-04-11 12:59:32 -04:00
indicators.txt Sync up core repo with Parsoid 2024-09-12 18:58:43 +03:00
interlanguageLinks.txt Sync up core repo with Parsoid 2024-09-24 12:36:03 -04:00
interwikiLinks.txt Parser tests: add additional options to test ParserOutput metadata 2024-09-13 14:42:27 -04:00
langParserTests.txt Sync up core repo with Parsoid 2024-09-12 18:58:43 +03:00
legacyHeadings.txt Sync up core repo with Parsoid 2024-09-12 18:58:43 +03:00
legacyMedia.txt Merge "Allow localized gallery widths; avoid spurious "double px" tracking category" 2024-10-02 21:39:40 +00:00
magicLinks.txt Sync up core repo with Parsoid 2024-09-26 13:04:36 -04:00
magicWords.txt parser: Add a new {{USERLANGUAGE}} magic word for use in wikitext 2024-09-07 19:16:32 +00:00
media.txt Merge "Allow localized gallery widths; avoid spurious "double px" tracking category" 2024-10-02 21:39:40 +00:00
MultiTestRecorder.php tests/parser/TestMode: move parser test helper class to parsoid library 2022-08-16 16:26:25 -04:00
ParserTestMockParser.php tests: Use namespaced ParserOptions 2024-10-16 01:35:06 +01:00
ParserTestParserHook.php [tests] Remove use of dynamic property Parser::$static_tag_buf 2024-02-22 16:02:19 -05:00
ParserTestPrinter.php Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
ParserTestResult.php Remove comment from parser test result description 2022-08-30 19:42:35 -04:00
ParserTestResultNormalizer.php Improve type documentation in parser test runner classes 2024-01-20 20:24:35 +01:00
ParserTestRunner.php PaserTestRunner: Avoid json_decode deprecation warning 2024-12-26 23:49:11 +00:00
parserTests.php Add namespace to maintenance/includes classes 2024-10-09 11:02:09 -04:00
parserTests.txt Use a better bidi aware markup in CommentParser 2024-10-04 10:50:02 +03:30
pfeqParserTests.txt Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
PhpunitTestRecorder.php tests/parser/TestMode: move parser test helper class to parsoid library 2022-08-16 16:26:25 -04:00
preprocessor.txt Move section edit links outside headings (new heading HTML) 2024-05-06 12:25:33 -04:00
preTags.txt Sync up core repo with Parsoid 2024-04-11 12:59:32 -04:00
pst.txt parser: Fix detection of variable with whitespace after subst: 2023-10-01 18:30:15 +00:00
pWrapping.txt Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
quotes.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
README Avoid mentioning tests/phpunit.php in documentation 2023-07-02 17:35:17 +02:00
redirects.txt Sync up core repo with Parsoid 2023-07-03 11:49:21 -04:00
tables.txt Sync up core repo with Parsoid 2024-09-12 18:58:43 +03:00
TestFileEditor.php Improve type documentation in parser test runner classes 2024-01-20 20:24:35 +01:00
TestRecorder.php Fix some typos 2023-03-21 15:58:09 +01:00
wtEscaping.txt Update expected test output after i18n change 2024-07-10 11:38:39 +02:00

Parser tests can be run either via PHPUnit or by using the standalone
parserTests.php in this directory. The standalone version provides more
options.

To run parser tests via PHPUnit:

 $ composer phpunit -- --testsuite parsertests

You can optionally filter by title using --filter, e.g.

 composer phpunit -- --testsuite parsertests --filter="T6400"