MediaWiki
REL1_31
DummySerializeErrorContentHandler.php
Go to the documentation of this file.
1
<?php
22
class
DummySerializeErrorContentHandler
extends
DummyContentHandlerForTesting
{
23
24
public
function
__construct
( $dataModel ) {
25
parent::__construct( $dataModel, [
"testing-serialize-error"
] );
26
}
27
36
public
function
unserializeContent
(
$blob
, $format =
null
) {
37
throw
new
MWContentSerializationException
(
'Could not unserialize content'
);
38
}
39
47
public
function
supportsDirectApiEditing
() {
48
return
true
;
49
}
50
51
}
DummyContentHandlerForTesting
Definition
DummyContentHandlerForTesting.php:3
DummySerializeErrorContentHandler
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
DummySerializeErrorContentHandler.php:22
DummySerializeErrorContentHandler\__construct
__construct( $dataModel)
Definition
DummySerializeErrorContentHandler.php:24
DummySerializeErrorContentHandler\unserializeContent
unserializeContent( $blob, $format=null)
Definition
DummySerializeErrorContentHandler.php:36
DummySerializeErrorContentHandler\supportsDirectApiEditing
supportsDirectApiEditing()
Definition
DummySerializeErrorContentHandler.php:47
MWContentSerializationException
Exception representing a failure to serialize or unserialize a content object.
Definition
MWContentSerializationException.php:7
$blob
$blob
Definition
testCompression.php:65
tests
phpunit
mocks
content
DummySerializeErrorContentHandler.php
Generated on Mon Nov 25 2024 15:36:43 for MediaWiki by
1.10.0