Merge "resourceloader: Add tests for StartUpModule dep tree optimisation"
[lhc/web/wiklou.git] / tests / phpunit / includes / diff / CustomDifferenceEngine.php
1 <?php
2
3 class CustomDifferenceEngine extends DifferenceEngine {
4
5 public function __construct() {
6 parent::__construct();
7 }
8
9 public function generateContentDiffBody( Content $old, Content $new ) {
10 return $old->getText() . '|' . $new->getText();
11 }
12
13 public function showDiffStyle() {
14 $this->getOutput()->addModules( 'foo' );
15 }
16
17 public function getDiffBodyCacheKeyParams() {
18 $params = parent::getDiffBodyCacheKeyParams();
19 $params[] = 'foo';
20 return $params;
21 }
22
23 }