MediaWiki  REL1_19
ExifRotationTest Class Reference

Tests related to auto rotation. More...

Inheritance diagram for ExifRotationTest:
Collaboration diagram for ExifRotationTest:

List of all members.

Public Member Functions

 __destruct ()
 provideBitmapExtractPreRotationDimensions ()
 providerFiles ()
 providerFilesNoAutoRotate ()
 setUp ()
 tearDown ()
 testBitmapExtractPreRotationDimensions ($rotation, $expected)
 provideBitmapExtractPreRotationDimensions
 testMetadata ($name, $type, $info)
 providerFiles
 testMetadataNoAutoRotate ($name, $type, $info)
 Same as before, but with auto-rotation disabled.
 testRotationRendering ($name, $type, $info, $thumbs)
 providerFiles
 testRotationRenderingNoAutoRotate ($name, $type, $info, $thumbs)
 providerFilesNoAutoRotate

Public Attributes

const TEST_HEIGHT = 200
const TEST_WIDTH = 100

Private Member Functions

 dataFile ($name, $type)
 tearDownFiles ()

Private Attributes

 $createdDirs = array()
 track directories creations.

Detailed Description

Tests related to auto rotation.

Definition at line 6 of file ExifRotationTest.php.


Constructor & Destructor Documentation

Definition at line 54 of file ExifRotationTest.php.

References tearDownFiles().

Here is the call graph for this function:


Member Function Documentation

ExifRotationTest::dataFile ( name,
type 
) [private]

Definition at line 111 of file ExifRotationTest.php.

Referenced by testMetadata(), testMetadataNoAutoRotate(), testRotationRendering(), and testRotationRenderingNoAutoRotate().

Here is the caller graph for this function:

Definition at line 116 of file ExifRotationTest.php.

Definition at line 11 of file ExifRotationTest.php.

References $wgEnableAutoRotation, $wgShowEXIF, wfDl(), and wfTempDir().

Here is the call graph for this function:

Definition at line 40 of file ExifRotationTest.php.

References $wgEnableAutoRotation, $wgShowEXIF, and tearDownFiles().

Here is the call graph for this function:

Definition at line 48 of file ExifRotationTest.php.

References $dir, and wfRecursiveRemoveDir().

Referenced by __destruct(), and tearDown().

Here is the call graph for this function:

Here is the caller graph for this function:

provideBitmapExtractPreRotationDimensions

Definition at line 245 of file ExifRotationTest.php.

References $result.

ExifRotationTest::testMetadata ( name,
type,
info 
)

providerFiles

Definition at line 62 of file ExifRotationTest.php.

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

Here is the call graph for this function:

ExifRotationTest::testMetadataNoAutoRotate ( name,
type,
info 
)

Same as before, but with auto-rotation disabled.

providerFilesNoAutoRotate

Definition at line 153 of file ExifRotationTest.php.

References $file, $wgEnableAutoRotation, and dataFile().

Here is the call graph for this function:

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

providerFiles

Definition at line 75 of file ExifRotationTest.php.

References $file, $matches, $out, $size, BitmapHandler\canRotate(), dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.

Here is the call graph for this function:

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

providerFilesNoAutoRotate

Definition at line 168 of file ExifRotationTest.php.

References $file, $matches, $out, $size, $wgEnableAutoRotation, dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.

Here is the call graph for this function:


Member Data Documentation

ExifRotationTest::$createdDirs = array() [private]

track directories creations.

Content will be deleted.

Definition at line 9 of file ExifRotationTest.php.

Definition at line 240 of file ExifRotationTest.php.

Definition at line 239 of file ExifRotationTest.php.


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