wiki.techinc.nl/tests/parser
James D. Forrester 2b11d61577 Migrate all uses of deprecated URL global functions to use wfGetUrlUtils()
wfGetUrlUtils() is also deprecated, but less so, so we can do this first
and then properly replace the individual uses with dependency injection
in local pieces of work.

Also:
* Switching Parser::getExternalLinkRel to UrlUtils::matchesDomainList
  exposed a type error in media.txt where $wgNoFollowDomainExceptions
  was set to a string (which is invalid) instead of an array.

Bug: T319340
Change-Id: Icb512d7241954ee155b64c57f3782b86acfd9a4c
2024-09-10 16:50:02 -07:00
..
AnsiTermColorer.php
badCharacters.txt
comments.txt
DbTestPreviewer.php Use expression builder to avoid IDatabase::addQuotes 2024-07-18 18:44:34 +00:00
DbTestRecorder.php tests: Migrate to IDatabase::newInsertQueryBuilder 2024-04-14 21:56:07 +02:00
definitionLists.txt Update name & email for bvibber 2024-02-08 17:02:16 -08:00
DjVuSupport.php
DummyTermColorer.php
editTests.php Make Maintenance::finalSetup require a SettingsBuilder 2024-01-08 09:40:18 -05:00
extLinks.txt Move Linker::makeExternalLink() to the LinkRenderer service 2024-06-10 18:47:32 +00:00
fuzzTest.php build: Upgrade mediawiki/mediawiki-phan-config from 0.13.0 to 0.14.0 manually 2024-02-10 02:22:41 +00:00
headings.txt Sync up core repo with Parsoid 2024-06-27 11:09:10 -04: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-06-07 09:06:26 +02:00
interlanguageLinks.txt
interwikiLinks.txt Sync up core repo with Parsoid 2024-02-21 15:04:08 -05:00
langParserTests.txt Sync up core repo with Parsoid 2024-06-27 11:09:10 -04:00
legacyHeadings.txt Merge "Parser: Avoid extra escaping in replaceTableOfContentsMarker" 2024-06-12 19:51:18 +00:00
legacyMedia.txt Migrate all uses of deprecated URL global functions to use wfGetUrlUtils() 2024-09-10 16:50:02 -07:00
magicLinks.txt
magicWords.txt parser: Add a new {{USERLANGUAGE}} magic word for use in wikitext 2024-09-07 19:16:32 +00:00
media.txt Migrate all uses of deprecated URL global functions to use wfGetUrlUtils() 2024-09-10 16:50:02 -07:00
MultiTestRecorder.php
ParserTestMockParser.php Move Parser to Mediawiki\Parser namespace 2024-02-16 09:18:38 -05:00
ParserTestParserHook.php [tests] Remove use of dynamic property Parser::$static_tag_buf 2024-02-22 16:02:19 -05:00
ParserTestPrinter.php
ParserTestResult.php
ParserTestResultNormalizer.php Improve type documentation in parser test runner classes 2024-01-20 20:24:35 +01:00
ParserTestRunner.php Remove ParserOutput::getText() calls from core (direct pipeline) 2024-08-23 18:15:00 +02:00
parserTests.php Replace last remaining wfGetDB() calls in core, except ResourceLoader 2024-02-14 11:02:01 -05:00
parserTests.txt parserTests.txt: Update documentation about cat/ill options 2024-09-10 19:30:07 +00:00
pfeqParserTests.txt
PhpunitTestRecorder.php
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
quotes.txt
README
redirects.txt
tables.txt Sync up core repo with Parsoid 2024-06-07 09:06:26 +02:00
TestFileEditor.php Improve type documentation in parser test runner classes 2024-01-20 20:24:35 +01:00
TestRecorder.php
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"