MediaWiki
REL1_22
|
Public Member Functions | |
testGetImageArea ($filename, $expected) | |
testGetMetadata ($filename, $expected) | |
testInvalidFile () | |
PNGHandler::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 |
* | |
PNGHandler | $handler |
* | |
FSRepo | $repo |
* | |
Private Member Functions | |
dataFile ($name, $type) |
Definition at line 2 of file PNGTest.php.
PNGHandlerTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 115 of file PNGTest.php.
static PNGHandlerTest::provideGetImageArea | ( | ) | [static] |
Definition at line 65 of file PNGTest.php.
static PNGHandlerTest::provideGetMetadata | ( | ) | [static] |
Definition at line 108 of file PNGTest.php.
static PNGHandlerTest::provideIsAnimated | ( | ) | [static] |
Definition at line 46 of file PNGTest.php.
static PNGHandlerTest::provideIsMetadataValid | ( | ) | [static] |
Definition at line 85 of file PNGTest.php.
PNGHandlerTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 9 of file PNGTest.php.
References array().
PNGHandlerTest::testGetImageArea | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | Integer Total image area provideGetImageArea PNGHandler::getImageArea |
Definition at line 59 of file PNGTest.php.
PNGHandlerTest::testGetMetadata | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | String Serialized array provideGetMetadata PNGHandler::getMetadata |
Definition at line 101 of file PNGTest.php.
Definition at line 29 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. provideIsAnimated PNGHandler::isAnimatedImage |
Definition at line 40 of file PNGTest.php.
PNGHandlerTest::testIsMetadataValid | ( | $ | metadata, |
$ | expected | ||
) |
$metadata | String Serialized metadata |
$expected | Integer One of the class constants of PNGHandler provideIsMetadataValid PNGHandler::isMetadataValid |
Definition at line 80 of file PNGTest.php.
FSFileBackend PNGHandlerTest::$backend [protected] |
*
Definition at line 6 of file PNGTest.php.
string PNGHandlerTest::$filePath [protected] |
*
Definition at line 7 of file PNGTest.php.
PNGHandler PNGHandlerTest::$handler [protected] |
*
Definition at line 4 of file PNGTest.php.
FSRepo PNGHandlerTest::$repo [protected] |
*
Definition at line 5 of file PNGTest.php.