mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-25 08:50:22 +00:00
22 lines
493 B
PHP
22 lines
493 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||
|
|
||
|
use DOMElement;
|
||
|
use MediaWiki\Extension\DiscussionTools\CommentFormatter;
|
||
|
use MediaWiki\Extension\DiscussionTools\CommentParser;
|
||
|
|
||
|
class MockCommentFormatter extends CommentFormatter {
|
||
|
|
||
|
public static $data;
|
||
|
|
||
|
/**
|
||
|
* @param DOMElement $container
|
||
|
* @return CommentParser
|
||
|
*/
|
||
|
protected static function getParser( DOMElement $container ) : CommentParser {
|
||
|
return CommentTestCase::createParser( $container, static::$data );
|
||
|
}
|
||
|
|
||
|
}
|