Go to the documentation of this file.
5 protected function setUp() {
9 'wgMaxImageArea' => 1.25e7,
10 'wgCustomConvertCommand' =>
'dummy',
22 $this->assertTrue( $valid );
23 $this->assertEquals( $expectedParams,
$params, $msg );
32 'width' => 512,
'height' => 384,
33 'physicalWidth' => 512,
'physicalHeight' => 384,
36 array(
'width' => 512 ),
37 'Resizing with width set',
42 'width' => 512,
'height' => 384,
43 'physicalWidth' => 512,
'physicalHeight' => 384,
46 array(
'width' => 512,
'height' => 768 ),
47 'Resizing with height set too high',
52 'width' => 512,
'height' => 384,
53 'physicalWidth' => 512,
'physicalHeight' => 384,
56 array(
'width' => 1024,
'height' => 384 ),
57 'Resizing with height set',
64 'width' => 5,
'height' => 1,
65 'physicalWidth' => 5,
'physicalHeight' => 1,
68 array(
'width' => 5 ),
75 'width' => 1,
'height' => 10,
76 'physicalWidth' => 1,
'physicalHeight' => 10,
79 array(
'width' => 1 ),
85 'width' => 1,
'height' => 5,
86 'physicalWidth' => 1,
'physicalHeight' => 10,
89 array(
'width' => 10,
'height' => 5 ),
90 'Very high image with height set',
96 'width' => 5000,
'height' => 5000,
97 'physicalWidth' => 4000,
'physicalHeight' => 4000,
100 array(
'width' => 5000 ),
101 'Bigger than max image size but doesn\'t need scaling',
113 $this->assertEquals(
'TransformParameterError',
114 get_class( $handler->doTransform(
$file,
'dummy path',
'',
$params ) ) );
122 $file->mustRender =
true;
125 $this->assertEquals(
'TransformParameterError',
126 get_class( $handler->doTransform(
$file,
'dummy path',
'',
$params ) ) );
135 $this->assertEquals( 63, $handler->getImageArea(
$file ) );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
testTooBigMustRenderImage()
@covers BitmapHandler::doTransform
testTooBigImage()
@covers BitmapHandler::doTransform
testNormaliseParams( $fileDimensions, $expectedParams, $params, $msg)
@dataProvider provideNormaliseParams @covers BitmapHandler::normaliseParams
testImageArea()
@covers BitmapHandler::getImageArea
Generic handler for bitmap images.
static provideNormaliseParams()
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
if(PHP_SAPI !='cli') $file
normaliseParams( $image, &$params)