MediaWiki
REL1_19
|
Tests related to auto rotation. More...
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. |
Tests related to auto rotation.
Definition at line 6 of file ExifRotationTest.php.
Definition at line 54 of file ExifRotationTest.php.
References tearDownFiles().
ExifRotationTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 111 of file ExifRotationTest.php.
Referenced by testMetadata(), testMetadataNoAutoRotate(), testRotationRendering(), and testRotationRenderingNoAutoRotate().
Definition at line 253 of file ExifRotationTest.php.
Definition at line 116 of file ExifRotationTest.php.
Definition at line 205 of file ExifRotationTest.php.
Definition at line 11 of file ExifRotationTest.php.
References $wgEnableAutoRotation, $wgShowEXIF, wfDl(), and wfTempDir().
Definition at line 40 of file ExifRotationTest.php.
References $wgEnableAutoRotation, $wgShowEXIF, and tearDownFiles().
ExifRotationTest::tearDownFiles | ( | ) | [private] |
Definition at line 48 of file ExifRotationTest.php.
References $dir, and wfRecursiveRemoveDir().
Referenced by __destruct(), and tearDown().
ExifRotationTest::testBitmapExtractPreRotationDimensions | ( | $ | rotation, |
$ | expected | ||
) |
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().
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().
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.
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.
ExifRotationTest::$createdDirs = array() [private] |
track directories creations.
Content will be deleted.
Definition at line 9 of file ExifRotationTest.php.
const ExifRotationTest::TEST_HEIGHT = 200 |
Definition at line 240 of file ExifRotationTest.php.
const ExifRotationTest::TEST_WIDTH = 100 |
Definition at line 239 of file ExifRotationTest.php.