rdbms: Rename "memCache" to "memStash" in LBFactory
[mediawiki.git] / tests / parser / ParserTestMockParser.php
blob0757b34cfb69598b2306d90f91d797e9654e09f7
1 <?php
3 /**
4 * A parser used during article insertion which does nothing, to avoid
5 * unnecessary log noise and other interference with debugging.
6 */
7 class ParserTestMockParser {
8 public function preSaveTransform( $text, Title $title, User $user,
9 ParserOptions $options, $clearState = true
10 ) {
11 return $text;
14 public function parse(
15 $text, Title $title, ParserOptions $options,
16 $linestart = true, $clearState = true, $revid = null
17 ) {
18 return new ParserOutput;