|
static | read (string $testFilePath, ?callable $warnFunc=null, ?callable $normalizeFunc=null, ?string $knownFailuresInfix=null) |
| Read and parse a parserTest file.
|
|
|
| $fileOptions = [] |
|
| $testCases = [] |
|
| $articles = [] |
|
| $knownFailuresPath |
|
◆ 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 | $testFilePath | The 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 | $knownFailuresInfix | qualifier 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:
- src/ParserTests/TestFileReader.php