MediaWiki
REL1_24
|
Specificly for testing Media handlers. More...
Protected Member Functions | |
createsThumbnails () | |
Will the test create thumbnails (and thus do we need to set aside a temporary directory for them?) | |
dataFile ($name, $type=null) | |
Utility function: Get a new file object for a file on disk but not actually in db. | |
getFilePath () | |
The result of this method will set the file path to use, as well as the protected member $filePath. | |
getRepoOptions () | |
setUp () | |
Protected Attributes | |
FSFileBackend | $backend |
* | |
string | $filePath |
* | |
FSRepo | $repo |
* |
Specificly for testing Media handlers.
Sets up a FSFile backend
Definition at line 5 of file MediaWikiMediaTestCase.php.
MediaWikiMediaTestCase::createsThumbnails | ( | ) | [protected] |
Will the test create thumbnails (and thus do we need to set aside a temporary directory for them?)
Override this method if your test case creates thumbnails
Reimplemented in ExifRotationTest.
Definition at line 61 of file MediaWikiMediaTestCase.php.
Referenced by setUp().
MediaWikiMediaTestCase::dataFile | ( | $ | name, |
$ | type = null |
||
) | [protected] |
Utility function: Get a new file object for a file on disk but not actually in db.
File must be in the path returned by getFilePath()
string | $name | File name |
string | $type | MIME type [optional] |
Definition at line 73 of file MediaWikiMediaTestCase.php.
Referenced by ImagePageTest\getImagePage(), ImagePage404Test\getImagePage(), FileTest\testCanAnimateThumbIfAppropriate(), SvgTest\testGetIndependentMetaArray(), JpegTest\testGetIndependentMetaArray(), DjVuTest\testGetPageDimensions(), DjVuTest\testGetPageText(), FormatMetadataTest\testInvalidDate(), JpegTest\testInvalidFile(), JpegTest\testJpegMetadataExtraction(), ExifRotationTest\testMetadata(), ExifRotationTest\testMetadataAutoRotate(), ExifRotationTest\testMetadataAutoRotateUnsupported(), ExifRotationTest\testMetadataNoAutoRotate(), DjVuTest\testPageCount(), ExifRotationTest\testRotationRendering(), and ExifRotationTest\testRotationRenderingNoAutoRotate().
MediaWikiMediaTestCase::getFilePath | ( | ) | [protected] |
The result of this method will set the file path to use, as well as the protected member $filePath.
Definition at line 49 of file MediaWikiMediaTestCase.php.
Referenced by setUp().
MediaWikiMediaTestCase::getRepoOptions | ( | ) | [protected] |
Reimplemented in ImagePage404Test.
Definition at line 35 of file MediaWikiMediaTestCase.php.
Referenced by setUp().
MediaWikiMediaTestCase::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Reimplemented in DjVuTest, ExifRotationTest, ImagePage404Test, GIFHandlerTest, PNGHandlerTest, XCFHandlerTest, JpegTest, FormatMetadataTest, SvgTest, and ImagePageTest.
Definition at line 12 of file MediaWikiMediaTestCase.php.
References array(), createsThumbnails(), getFilePath(), MediaWikiTestCase\getNewTempDirectory(), and getRepoOptions().
FSFileBackend MediaWikiMediaTestCase::$backend [protected] |
*
Definition at line 8 of file MediaWikiMediaTestCase.php.
string MediaWikiMediaTestCase::$filePath [protected] |
*
Definition at line 9 of file MediaWikiMediaTestCase.php.
FSRepo MediaWikiMediaTestCase::$repo [protected] |
*
Definition at line 7 of file MediaWikiMediaTestCase.php.