MediaWiki  REL1_21
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.
 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.

Detailed Description

Definition at line 3 of file PreprocessorTest.php.


Member Function Documentation

Definition at line 17 of file PreprocessorTest.php.

References array().

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

Parameters:
string$xml
Returns:
string

Definition at line 137 of file PreprocessorTest.php.

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

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

Parameters:
string$wikiText
Returns:
string

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.

References array(), bug, and http.

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

provideFiles

Definition at line 164 of file PreprocessorTest.php.

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


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: