MediaWiki
REL1_21
|
Public Member Functions | |
testGetImageArea ($filename, $expected) | |
testGetMetadata ($filename, $expected) | |
testInvalidFile () | |
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. | |
Private Member Functions | |
dataFile ($name, $type) |
Definition at line 2 of file GIFTest.php.
GIFHandlerTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 100 of file GIFTest.php.
Referenced by testGetImageArea(), testGetMetadata(), and testIsAnimanted().
static GIFHandlerTest::provideGetImageArea | ( | ) | [static] |
Definition at line 55 of file GIFTest.php.
References array().
static GIFHandlerTest::provideGetMetadata | ( | ) | [static] |
Definition at line 93 of file GIFTest.php.
References array().
static GIFHandlerTest::provideIsAnimated | ( | ) | [static] |
Definition at line 37 of file GIFTest.php.
References array().
static GIFHandlerTest::provideIsMetadataValid | ( | ) | [static] |
Definition at line 72 of file GIFTest.php.
References array(), GIFHandler\BROKEN_FILE, MediaHandler\METADATA_BAD, and MediaHandler\METADATA_GOOD.
GIFHandlerTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 4 of file GIFTest.php.
References array().
GIFHandlerTest::testGetImageArea | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | Integer Total image area provideGetImageArea |
Definition at line 49 of file GIFTest.php.
References $file, and dataFile().
GIFHandlerTest::testGetMetadata | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | String Serialized array provideGetMetadata |
Definition at line 87 of file GIFTest.php.
References $file, and dataFile().
Definition at line 21 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 |
Definition at line 31 of file GIFTest.php.
References $file, and dataFile().
GIFHandlerTest::testIsMetadataValid | ( | $ | metadata, |
$ | expected | ||
) |
$metadata | String Serialized metadata |
$expected | Integer One of the class constants of GIFHandler provideIsMetadataValid |
Definition at line 67 of file GIFTest.php.