MediaWiki  REL1_22
ExifRotationTest Class Reference

Tests related to auto rotation. More...

Inheritance diagram for ExifRotationTest:
Collaboration diagram for ExifRotationTest:

List of all members.

Public Member Functions

 testBitmapExtractPreRotationDimensions ($rotation, $expected)
 provideBitmapExtractPreRotationDimensions
 testMetadata ($name, $type, $info)
 provideFiles
 testMetadataNoAutoRotate ($name, $type, $info)
 Same as before, but with auto-rotation disabled.
 testRotationRendering ($name, $type, $info, $thumbs)
 provideFiles
 testRotationRenderingNoAutoRotate ($name, $type, $info, $thumbs)
 provideFilesNoAutoRotate

Static Public Member Functions

static provideBitmapExtractPreRotationDimensions ()
static provideFiles ()
static provideFilesNoAutoRotate ()

Public Attributes

const TEST_HEIGHT = 200
const TEST_WIDTH = 100

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Private Member Functions

 dataFile ($name, $type)

Detailed Description

Tests related to auto rotation.

medium

Todo:
covers tags

Definition at line 9 of file ExifRotationTest.php.


Member Function Documentation

Definition at line 228 of file ExifRotationTest.php.

References array().

static ExifRotationTest::provideFiles ( ) [static]

Definition at line 96 of file ExifRotationTest.php.

References array().

Definition at line 180 of file ExifRotationTest.php.

References array().

ExifRotationTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 11 of file ExifRotationTest.php.

References array(), MediaWikiTestCase\getNewTempDirectory(), and MediaWikiTestCase\setMwGlobals().

provideBitmapExtractPreRotationDimensions

Definition at line 220 of file ExifRotationTest.php.

References $result, and array().

ExifRotationTest::testMetadata ( name,
type,
info 
)

provideFiles

Definition at line 41 of file ExifRotationTest.php.

References $file, $name, BitmapHandler\canRotate(), and dataFile().

ExifRotationTest::testMetadataNoAutoRotate ( name,
type,
info 
)

Same as before, but with auto-rotation disabled.

provideFilesNoAutoRotate

Definition at line 133 of file ExifRotationTest.php.

References $file, $name, dataFile(), and MediaWikiTestCase\setMwGlobals().

ExifRotationTest::testRotationRendering ( name,
type,
info,
thumbs 
)
ExifRotationTest::testRotationRenderingNoAutoRotate ( name,
type,
info,
thumbs 
)

provideFilesNoAutoRotate

Definition at line 145 of file ExifRotationTest.php.

References $file, $matches, $name, $out, $params, $size, array(), as, dataFile(), File\RENDER_FORCE, File\RENDER_NOW, and MediaWikiTestCase\setMwGlobals().


Member Data Documentation

Definition at line 215 of file ExifRotationTest.php.

Definition at line 214 of file ExifRotationTest.php.


The documentation for this class was generated from the following file: