Go to the documentation of this file.
20 protected function setUp() {
26 $this->testParser =
new Parser();
27 $this->testParser->Options( $this->testParserOptions );
28 $this->testParser->clearState();
36 unset( $this->testParser );
37 unset( $this->
title );
52 '<pre>monospaced</pre>',
53 '<pre>monospaced</pre>',
54 '<pre> in preloaded text must be unstripped (bug 27467)'
63 '<nowiki>[[Dummy title]]</nowiki>',
64 '<nowiki>[[Dummy title]]</nowiki>',
65 '<nowiki> in preloaded text must be unstripped (bug 27467)'
72 $this->testParser->getPreloadText(
75 $this->testParserOptions
Set options of the Parser.
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
testPreloadedNowikiIsUnstripped()
@covers Parser::getPreloadText
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 content language as $wgContLang
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
ParserOptions $testParserOptions
static newFromUserAndLang(User $user, Language $lang)
Get a ParserOptions object from a given user and language.
when a variable name is used in a it is silently declared as a new masking the global
assertPreloaded( $expected, $text, $msg='')
Basic tests for Parser::getPreloadText.
testPreloadedPreIsUnstripped()
@covers Parser::getPreloadText
Represents a title within MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
testPreloadSimpleText()
@covers Parser::getPreloadText