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

List of all members.

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'

Detailed Description

Definition at line 3 of file PreprocessorTest.php.


Member Function Documentation

Definition at line 22 of file PreprocessorTest.php.

PreprocessorTest::normalizeXml ( xml) [protected]

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

Parameters:
string$xml
Returns:
string

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

Parameters:
string$wikiText
Returns:
string

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.


Member Data Documentation

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.

PreprocessorTest::$mTitle = 'Page title' [protected]

Definition at line 4 of file PreprocessorTest.php.


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