MediaWiki
REL1_22
|
Public Member Functions | |
getStripList () | |
testHeadings ($wikiText, $expectedXml) | |
provideHeadings Preprocessor_DOM::preprocessToXml | |
testPreprocessorOutput ($wikiText, $expectedXml) | |
provideCases Preprocessor_DOM::preprocessToXml | |
testPreprocessorOutputFiles ($filename) | |
provideFiles Preprocessor_DOM::preprocessToXml | |
Static Public Member Functions | |
static | provideCases () |
static | provideFiles () |
These are more complex test cases taken out of wiki articles. | |
static | provideHeadings () |
Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642. | |
Protected Member Functions | |
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). | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. | |
Protected Attributes | |
ParserOptions | $mOptions |
$mPPNodeCount = 0 | |
Preprocessor | $mPreprocessor |
$mTitle = 'Page title' |
Definition at line 3 of file PreprocessorTest.php.
Definition at line 22 of file PreprocessorTest.php.
PreprocessorTest::normalizeXml | ( | $ | xml | ) | [protected] |
Normalize XML string to the form that a DOMDocument saves out.
string | $xml |
Definition at line 142 of file PreprocessorTest.php.
PreprocessorTest::preprocessToXml | ( | $ | wikiText | ) | [protected] |
Get XML preprocessor tree from the preprocessor (which may not be the native XML-based one).
string | $wikiText |
Definition at line 123 of file PreprocessorTest.php.
static PreprocessorTest::provideCases | ( | ) | [static] |
Definition at line 26 of file PreprocessorTest.php.
static PreprocessorTest::provideFiles | ( | ) | [static] |
These are more complex test cases taken out of wiki articles.
Definition at line 157 of file PreprocessorTest.php.
static PreprocessorTest::provideHeadings | ( | ) | [static] |
Tests from Bug 28642 · https://bugzilla.wikimedia.org/28642.
Definition at line 190 of file PreprocessorTest.php.
PreprocessorTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 13 of file PreprocessorTest.php.
References $name, $wgContLang, global, and ParserOptions\newFromUserAndLang().
PreprocessorTest::testHeadings | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideHeadings Preprocessor_DOM::preprocessToXml
Definition at line 234 of file PreprocessorTest.php.
PreprocessorTest::testPreprocessorOutput | ( | $ | wikiText, |
$ | expectedXml | ||
) |
provideCases Preprocessor_DOM::preprocessToXml
Definition at line 150 of file PreprocessorTest.php.
PreprocessorTest::testPreprocessorOutputFiles | ( | $ | filename | ) |
provideFiles Preprocessor_DOM::preprocessToXml
Definition at line 171 of file PreprocessorTest.php.
ParserOptions PreprocessorTest::$mOptions [protected] |
Definition at line 8 of file PreprocessorTest.php.
PreprocessorTest::$mPPNodeCount = 0 [protected] |
Definition at line 5 of file PreprocessorTest.php.
Preprocessor PreprocessorTest::$mPreprocessor [protected] |
Definition at line 11 of file PreprocessorTest.php.
Definition at line 4 of file PreprocessorTest.php.