CommentStore: Hard-deprecate newKey()
[lhc/web/wiklou.git] / tests / phpunit / includes / RevisionTestModifyableContentHandler.php
1 <?php
2
3 class RevisionTestModifyableContentHandler extends TextContentHandler {
4
5 public function __construct() {
6 parent::__construct( RevisionTestModifyableContent::MODEL_ID, [ CONTENT_FORMAT_TEXT ] );
7 }
8
9 public function unserializeContent( $text, $format = null ) {
10 $this->checkFormat( $format );
11
12 return new RevisionTestModifyableContent( $text );
13 }
14
15 public function makeEmptyContent() {
16 return new RevisionTestModifyableContent( '' );
17 }
18
19 }