Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\ParserTests\TestFileReader Class Reference

Static Public Member Functions

static read (string $testFilePath, ?callable $warnFunc=null, ?callable $normalizeFunc=null, ?string $knownFailuresInfix=null)
 Read and parse a parserTest file.
 

Public Attributes

 $fileOptions = []
 
 $testCases = []
 
 $articles = []
 
 $knownFailuresPath
 

Member Function Documentation

◆ read()

static Wikimedia\Parsoid\ParserTests\TestFileReader::read ( string $testFilePath,
?callable $warnFunc = null,
?callable $normalizeFunc = null,
?string $knownFailuresInfix = null )
static

Read and parse a parserTest file.

Parameters
string$testFilePathThe parserTest file to read
?callable(string)$warnFunc An optional function to use to report the use of deprecated test section names
?callable(string):string$normalizeFunc An optional function to use to normalize article titles for uniqueness testing
?string$knownFailuresInfixqualifier for the known failures file (usually "standalone" to distinguish from the failures from the default integrated test run)
Returns
TestFileReader

The documentation for this class was generated from the following file: