wiki.techinc.nl/tests/phpunit/includes/diff/CustomDifferenceEngine.php
Umherirrender 839613ff77 tests: Use namespaced classes
Changes to the use statements and some additions
are done automatically via script
This also updates @covers tag for the namespaced classes

Change-Id: I859ba6d05018c99710b744e2becab432410d3bca
2024-10-21 18:53:02 +02:00

25 lines
508 B
PHP

<?php
use MediaWiki\Content\Content;
class CustomDifferenceEngine extends DifferenceEngine {
public function __construct() {
parent::__construct();
}
public function generateContentDiffBody( Content $old, Content $new ) {
return $old->getText() . '|' . $new->getText();
}
public function showDiffStyle() {
$this->getOutput()->addModules( 'foo' );
}
public function getDiffBodyCacheKeyParams() {
$params = parent::getDiffBodyCacheKeyParams();
$params[] = 'foo';
return $params;
}
}