wiki.techinc.nl/tests/parser
James D. Forrester ad06527fb4 Reorg: Namespace the Title class
This is moderately messy.

Process was principally:

* xargs rg --files-with-matches '^use Title;' | grep 'php$' | \
  xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1'
* rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \
  xargs rg --files-with-matches 'Title\b' | \
  xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1'
* composer fix

Then manual fix-ups for a few files that don't have any use statements.

Bug: T166010
Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a
Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
2023-03-02 08:46:53 -05: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 rdbms: Move several methods from IDatabase to IMaintainableDatabase 2022-08-08 14:11:39 +00:00
DbTestRecorder.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
definitionLists.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
DjVuSupport.php
DummyTermColorer.php maintenance: Move MWTerm classes to /tests/parser/ 2022-03-24 21:01:14 +00:00
editTests.php Remove use-tidy-config option 2022-08-31 14:02:10 -04:00
extLinks.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
fuzzTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
indentPre.txt Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
interlanguageLinks.txt ParserTestRunner: handle metadata output as separate section 2023-02-28 17:26:08 -05:00
interwikiLinks.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
legacyMedia.txt Sync up core repo with Parsoid 2023-03-01 14:24:14 -05:00
magicLinks.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
magicWords.txt ParserTestRunner: handle metadata output as separate section 2023-02-28 17:26:08 -05:00
media.txt Sync up core repo with Parsoid 2023-03-01 14:24:14 -05:00
MultiTestRecorder.php tests/parser/TestMode: move parser test helper class to parsoid library 2022-08-16 16:26:25 -04:00
ParserTestMockParser.php Remove deprecated $wgParser 2022-08-03 14:40:16 +02:00
ParserTestParserHook.php Reorg: Move HTML-related classes out of includes/ to Html/ 2023-02-16 20:40:01 +01:00
ParserTestPrinter.php Suppress false SecurityCheckXSS positives in ParserTestPrinter 2023-02-23 20:20:06 +00:00
ParserTestResult.php Remove comment from parser test result description 2022-08-30 19:42:35 -04:00
ParserTestResultNormalizer.php tests/parser: Run phan 2022-06-02 00:13:30 +02:00
ParserTestRunner.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
parserTests.php ParserTests: Add --dir option as a complement to the --file option 2022-10-25 15:43:26 -05:00
parserTests.txt ParserTestRunner: handle metadata output as separate section 2023-02-28 17:26:08 -05:00
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 Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
preTags.txt Sync up core repo with Parsoid 2022-10-19 19:13:04 -05:00
pst.txt ParserTestRunner: handle metadata output as separate section 2023-02-28 17:26:08 -05: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
redirects.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06:00
tables.txt Sync up core repo with Parsoid 2023-01-11 17:35:44 -06:00
TestFileEditor.php TestFileEditor: Fix string interpolation 2022-11-04 17:03:38 -06:00
TestRecorder.php tests/parser/TestMode: move parser test helper class to parsoid library 2022-08-16 16:26:25 -04:00
toc.txt ParserTestRunner: handle metadata output as separate section 2023-02-28 17:26:08 -05:00
wtEscaping.txt Sync up core repo with Parsoid 2023-01-06 08:29:04 -06: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:

 $ cd tests/phpunit
 ./phpunit.php --testsuite parsertests

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

 ./phpunit.php --testsuite parsertests --filter="T6400"