MediaWiki
REL1_19
|
Public Member Functions | |
dataGetImageArea () | |
dataGetMetadata () | |
dataIsAnimated () | |
dataIsMetadataValid () | |
setUp () | |
testGetImageArea ($filename, $expected) | |
testGetMetadata ($filename, $expected) | |
testInvalidFile () | |
testIsAnimanted ($filename, $expected) | |
testIsMetadataValid ($metadata, $expected) | |
Private Member Functions | |
dataFile ($name, $type) |
Definition at line 2 of file PNGTest.php.
PNGHandlerTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 96 of file PNGTest.php.
Referenced by testGetImageArea(), testGetMetadata(), and testIsAnimanted().
Definition at line 50 of file PNGTest.php.
Definition at line 89 of file PNGTest.php.
Definition at line 33 of file PNGTest.php.
Definition at line 68 of file PNGTest.php.
References PNGHandler\BROKEN_FILE, MediaHandler\METADATA_BAD, and MediaHandler\METADATA_GOOD.
Definition at line 4 of file PNGTest.php.
PNGHandlerTest::testGetImageArea | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | Integer Total image area dataGetImageArea |
Definition at line 45 of file PNGTest.php.
References $file, and dataFile().
PNGHandlerTest::testGetMetadata | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | String Serialized array dataGetMetadata |
Definition at line 83 of file PNGTest.php.
References $file, and dataFile().
Definition at line 19 of file PNGTest.php.
References $res, and PNGHandler\BROKEN_FILE.
PNGHandlerTest::testIsAnimanted | ( | $ | filename, |
$ | expected | ||
) |
$filename | String basename of the file to check |
$expected | boolean Expected result. dataIsAnimated |
Definition at line 28 of file PNGTest.php.
References $file, and dataFile().
PNGHandlerTest::testIsMetadataValid | ( | $ | metadata, |
$ | expected | ||
) |
$metadata | String Serialized metadata |
$expected | Integer One of the class constants of PNGHandler dataIsMetadataValid |
Definition at line 64 of file PNGTest.php.