Debian Codegraph @

tests/phpunit/includes/diff/CustomDifferenceEngine.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\Content\Content;
4
5 class CustomDifferenceEngine extends DifferenceEngine {
6
7 public function __construct() {
8 parent::__construct();
9 }
10
11 public function generateContentDiffBody( Content $old, Content $new ) {
12 return $old->getText() . '|' . $new->getText();
13 }
14
15 public function showDiffStyle() {
16 $this->getOutput()->addModules( 'foo' );
17 }
18
19 public function getDiffBodyCacheKeyParams() {
20 $params = parent::getDiffBodyCacheKeyParams();
21 $params[] = 'foo';
22 return $params;
23 }
24
25 }