MediaWiki  REL1_19
PreprocessorTest Class Reference
Inheritance diagram for PreprocessorTest:
Collaboration diagram for PreprocessorTest:

List of all members.

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'

Detailed Description

Definition at line 3 of file PreprocessorTest.php.


Member Function Documentation

Definition at line 16 of file PreprocessorTest.php.

Normalize XML string to the form that a DOMDocument saves out.

Parameters:
string$xml
Returns:
string

Definition at line 136 of file PreprocessorTest.php.

Referenced by preprocessToXml(), testHeadings(), testPreprocessorOutput(), and testPreprocessorOutputFiles().

Here is the caller graph for this function:

Get XML preprocessor tree from the preprocessor (which may not be the native XML-based one).

Parameters:
string$wikiText
Returns:
string

Definition at line 117 of file PreprocessorTest.php.

References normalizeXml().

Referenced by testHeadings(), testPreprocessorOutput(), and testPreprocessorOutputFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

PreprocessorTest::testPreprocessorOutput ( wikiText,
expectedXml 
)

provideCases

Definition at line 148 of file PreprocessorTest.php.

References normalizeXml(), and preprocessToXml().

Here is the call graph for this function:

provideFiles

Definition at line 167 of file PreprocessorTest.php.

References $output, normalizeXml(), and preprocessToXml().

Here is the call graph for this function:


Member Data Documentation

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.


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