MediaWiki
REL1_21
|
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. | |
testHeadings ($wikiText, $expectedXml) | |
provideHeadings | |
testPreprocessorOutput ($wikiText, $expectedXml) | |
provideCases | |
testPreprocessorOutputFiles ($filename) | |
provideFiles | |
Public Attributes | |
$mOptions | |
$mPPNodeCount = 0 | |
$mTitle = 'Page title' | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Definition at line 3 of file PreprocessorTest.php.
Definition at line 17 of file PreprocessorTest.php.
References array().
PreprocessorTest::normalizeXml | ( | $ | xml | ) |
Normalize XML string to the form that a DOMDocument saves out.
string | $xml |
Definition at line 137 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 118 of file PreprocessorTest.php.
References array(), and normalizeXml().
Referenced by testHeadings(), testPreprocessorOutput(), and testPreprocessorOutputFiles().
Definition at line 21 of file PreprocessorTest.php.
References array().
These are more complex test cases taken out of wiki articles.
Definition at line 151 of file PreprocessorTest.php.
Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642.
Definition at line 183 of file PreprocessorTest.php.
References array().
PreprocessorTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 8 of file PreprocessorTest.php.
References $name, $wgContLang, global, and ParserOptions\newFromUserAndLang().
PreprocessorTest::testHeadings | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideHeadings
Definition at line 226 of file PreprocessorTest.php.
References normalizeXml(), and preprocessToXml().
PreprocessorTest::testPreprocessorOutput | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideCases
Definition at line 144 of file PreprocessorTest.php.
References normalizeXml(), and preprocessToXml().
PreprocessorTest::testPreprocessorOutputFiles | ( | $ | filename | ) |
provideFiles
Definition at line 164 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.
Definition at line 4 of file PreprocessorTest.php.