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 PNGTest.php.
PNGHandlerTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 103 of file PNGTest.php.
Referenced by testGetImageArea(), testGetMetadata(), and testIsAnimanted().
static PNGHandlerTest::provideGetImageArea | ( | ) | [static] |
Definition at line 55 of file PNGTest.php.
References array().
static PNGHandlerTest::provideGetMetadata | ( | ) | [static] |
Definition at line 96 of file PNGTest.php.
References array().
static PNGHandlerTest::provideIsAnimated | ( | ) | [static] |
Definition at line 37 of file PNGTest.php.
References array().
static PNGHandlerTest::provideIsMetadataValid | ( | ) | [static] |
Definition at line 74 of file PNGTest.php.
References array(), PNGHandler\BROKEN_FILE, MediaHandler\METADATA_BAD, and MediaHandler\METADATA_GOOD.
PNGHandlerTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 4 of file PNGTest.php.
References array().
PNGHandlerTest::testGetImageArea | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | Integer Total image area provideGetImageArea |
Definition at line 49 of file PNGTest.php.
References $file, and dataFile().
PNGHandlerTest::testGetMetadata | ( | $ | filename, |
$ | expected | ||
) |
$filename | String |
$expected | String Serialized array provideGetMetadata |
Definition at line 89 of file PNGTest.php.
References $file, and dataFile().
Definition at line 21 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 |
Definition at line 31 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 provideIsMetadataValid |
Definition at line 69 of file PNGTest.php.