MediaWiki
REL1_22
|
Public Member Functions | |
testGetImageArea ($filename, $expected) | |
testGetMetadata ($filename, $expected) | |
testInvalidFile () | |
GIFHandler::getMetadata | |
testIsAnimanted ($filename, $expected) | |
testIsMetadataValid ($metadata, $expected) | |
Static Public Member Functions | |
static | provideGetImageArea () |
static | provideGetMetadata () |
static | provideIsAnimated () |
static | provideIsMetadataValid () |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. | |
Protected Attributes | |
FSFileBackend | $backend |
* | |
string | $filePath |
* | |
GIFHandler | $handler |
* | |
FSRepo | $repo |
* | |
Private Member Functions | |
dataFile ($name, $type) |
Definition at line 2 of file GIFTest.php.
GIFHandlerTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 112 of file GIFTest.php.
static GIFHandlerTest::provideGetImageArea | ( | ) | [static] |
Definition at line 65 of file GIFTest.php.
static GIFHandlerTest::provideGetMetadata | ( | ) | [static] |
Definition at line 105 of file GIFTest.php.
static GIFHandlerTest::provideIsAnimated | ( | ) | [static] |
Definition at line 46 of file GIFTest.php.
static GIFHandlerTest::provideIsMetadataValid | ( | ) | [static] |
Definition at line 83 of file GIFTest.php.
GIFHandlerTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 9 of file GIFTest.php.
References array().
GIFHandlerTest::testGetImageArea | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | Integer Total image area provideGetImageArea GIFHandler::getImageArea |
Definition at line 59 of file GIFTest.php.
GIFHandlerTest::testGetMetadata | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | String Serialized array provideGetMetadata GIFHandler::getMetadata |
Definition at line 99 of file GIFTest.php.
Definition at line 29 of file GIFTest.php.
References $res, and GIFHandler\BROKEN_FILE.
GIFHandlerTest::testIsAnimanted | ( | $ | filename, |
$ | expected | ||
) |
$filename | String basename of the file to check |
$expected | boolean Expected result. provideIsAnimated GIFHandler::isAnimatedImage |
Definition at line 40 of file GIFTest.php.
GIFHandlerTest::testIsMetadataValid | ( | $ | metadata, |
$ | expected | ||
) |
$metadata | String Serialized metadata |
$expected | Integer One of the class constants of GIFHandler provideIsMetadataValid GIFHandler::isMetadataValid |
Definition at line 78 of file GIFTest.php.
FSFileBackend GIFHandlerTest::$backend [protected] |
*
Definition at line 4 of file GIFTest.php.
string GIFHandlerTest::$filePath [protected] |
*
Definition at line 7 of file GIFTest.php.
GIFHandler GIFHandlerTest::$handler [protected] |
*
Definition at line 5 of file GIFTest.php.
FSRepo GIFHandlerTest::$repo [protected] |
*
Definition at line 6 of file GIFTest.php.