8 protected function setUp() {
11 $this->filePath = __DIR__ .
'/../../data/media/';
25 $file = $this->
dataFile( $filename,
'image/svg+xml' );
28 $this->assertEquals(
$res, $expected );
34 'ObjectName' =>
'Tux',
36 'For more information see: http://commons.wikimedia.org/wiki/Image:Tux.svg',
38 [
'Wikimedia-logo.svg', [] ]
testGetIndependentMetaArray( $filename, $expected)
static providerGetIndependentMetaArray()
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array you should do so by altering $wgNamespaceProtection and $wgNamespaceContentModels outside the handler