Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git] / tests / parser / ParserTestMockParser.php
1 <?php
2
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;
12 }
13
14 public function parse(
15 $text, Title $title, ParserOptions $options,
16 $linestart = true, $clearState = true, $revid = null
17 ) {
18 return new ParserOutput;
19 }
20
21 public function getOutput() {
22 return new ParserOutput;
23 }
24 }