When I ran bin/parserTests.js --wt2html --phpConfigFile phpconfig.yaml with this phpconfig.yaml file:
wt2html: PegTokenizer: true SyncTokenTransformManager1: true SyncTokenTransformManager3: true HTML5TreeBuilder: true DOM: # Processors that provide their own DOM Traversal ProcessTreeBuilderFixups: true MarkFosteredContent: true MigrateTrailingNLs: true PWrap: true HandlePres: true ComputeDSR: true WrapTemplates: true WrapSections: true AddExtLinkClasses: true
I get the following test failures. These need to be investigated and fixed where the problem is unrelated to mocking or testing infrastructure. Note that the above config file runs all stage 1 and stage 3 token transformers entirely in PHP since the token transform managers associated with those stages are enabled in PHP.
UNEXPECTED FAIL: 2f. Indent-pre started by table-line syntax (wt2html) UNEXPECTED FAIL: Table cell attributes: Pipes protected by nowikis should be treated as a plain character (wt2html) UNEXPECTED FAIL: T107652: <ref>s in templates that also generate table cell attributes should be rendered properly (wt2html) UNEXPECTED FAIL: <pre> inside a link (wt2html) UNEXPECTED FAIL: 1. Table tag in SOL posn. should get reparsed correctly with valid TSR (wt2html) UNEXPECTED FAIL: Table wikitext syntax outside wiki-tables (wt2html) UNEXPECTED FAIL: Extension tag in attribute value (wt2html) UNEXPECTED FAIL: T5244: HTML attribute safety (extension; safe) (wt2html) UNEXPECTED FAIL: T5244: HTML attribute safety (extension; unsafe) (wt2html) UNEXPECTED FAIL: Table attribute legitimate extension (wt2html) UNEXPECTED FAIL: Table attribute safety (wt2html) UNEXPECTED FAIL: {{!}} is a magic word (wt2html) UNEXPECTED FAIL: 8. Encapsulate foster-parented transclusion content (wt2html) --> 13 UNEXPECTED RESULTS. <--