MediaWiki
REL1_19
|
Public Member Functions | |
getStripList () | |
normalizeXml ($xml) | |
Normalize XML string to the form that a DOMDocument saves out. | |
preprocessToXml ($wikiText) | |
Get XML preprocessor tree from the preprocessor (which may not be the native XML-based one). | |
provideCases () | |
provideFiles () | |
These are more complex test cases taken out of wiki articles. | |
provideHeadings () | |
Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642. | |
setUp () | |
testHeadings ($wikiText, $expectedXml) | |
provideHeadings | |
testPreprocessorOutput ($wikiText, $expectedXml) | |
provideCases | |
testPreprocessorOutputFiles ($filename) | |
provideFiles | |
Public Attributes | |
$mOptions | |
$mPPNodeCount = 0 | |
$mTitle = 'Page title' |
Definition at line 3 of file PreprocessorTest.php.
Definition at line 16 of file PreprocessorTest.php.
PreprocessorTest::normalizeXml | ( | $ | xml | ) |
Normalize XML string to the form that a DOMDocument saves out.
string | $xml |
Definition at line 136 of file PreprocessorTest.php.
Referenced by preprocessToXml(), testHeadings(), testPreprocessorOutput(), and testPreprocessorOutputFiles().
PreprocessorTest::preprocessToXml | ( | $ | wikiText | ) |
Get XML preprocessor tree from the preprocessor (which may not be the native XML-based one).
string | $wikiText |
Definition at line 117 of file PreprocessorTest.php.
References normalizeXml().
Referenced by testHeadings(), testPreprocessorOutput(), and testPreprocessorOutputFiles().
Definition at line 20 of file PreprocessorTest.php.
These are more complex test cases taken out of wiki articles.
Definition at line 155 of file PreprocessorTest.php.
Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642.
Definition at line 186 of file PreprocessorTest.php.
Definition at line 8 of file PreprocessorTest.php.
References $wgParserConf.
PreprocessorTest::testHeadings | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideHeadings
Definition at line 229 of file PreprocessorTest.php.
References normalizeXml(), and preprocessToXml().
PreprocessorTest::testPreprocessorOutput | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideCases
Definition at line 148 of file PreprocessorTest.php.
References normalizeXml(), and preprocessToXml().
PreprocessorTest::testPreprocessorOutputFiles | ( | $ | filename | ) |
provideFiles
Definition at line 167 of file PreprocessorTest.php.
References $output, normalizeXml(), and preprocessToXml().
PreprocessorTest::$mOptions |
Definition at line 6 of file PreprocessorTest.php.
PreprocessorTest::$mPPNodeCount = 0 |
Definition at line 5 of file PreprocessorTest.php.
PreprocessorTest::$mTitle = 'Page title' |
Definition at line 4 of file PreprocessorTest.php.