48 $this->testParserOptions = ParserOptions::newFromUserAndLang(
new User,
$wgContLang );
50 $this->testParser =
new Parser();
51 $this->testParser->Options( $this->testParserOptions );
52 $this->testParser->clearState();
54 $this->title = Title::newFromText(
'Preload Test' );
60 unset( $this->testParser );
61 unset( $this->title );
70 '<pre>monospaced</pre>',
71 '<pre>monospaced</pre>',
72 '<pre> in preloaded text must be unstripped (T29467)'
78 '<nowiki>[[Dummy title]]</nowiki>',
79 '<nowiki>[[Dummy title]]</nowiki>',
80 '<nowiki> in preloaded text must be unstripped (T29467)'
87 $this->testParser->getPreloadText(
90 $this->testParserOptions
Set options of the Parser.
Basic tests for Parser::getPreloadText.
testPreloadedPreIsUnstripped()
ParserOptions $testParserOptions
assertPreloaded( $expected, $text, $msg='')
testPreloadedNowikiIsUnstripped()
PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for ma...
Represents a title within MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the local content language as $wgContLang