mediawiki-extensions-Discus.../tests/phpunit/MockCommentFormatter.php
Ed Sanders af54bae2ec Prefer late static binding over self::
While in many cases the class will never be sub-classed, it's easier
just to always use static:: and not worry about predicting which
classes might have problems in the future.

Change-Id: I23072a1701b5acf62bb3379a877de97627d8fcf3
2022-06-09 15:12:48 +01:00

23 lines
412 B
PHP

<?php
namespace MediaWiki\Extension\DiscussionTools\Tests;
use MediaWiki\Extension\DiscussionTools\CommentFormatter;
use MediaWiki\Extension\DiscussionTools\CommentParser;
class MockCommentFormatter extends CommentFormatter {
/**
* @var CommentParser
*/
public static $parser;
/**
* @return CommentParser
*/
protected static function getParser(): CommentParser {
return static::$parser;
}
}