MediaWiki  REL1_24
PNGHandlerTest Class Reference

Media More...

Inheritance diagram for PNGHandlerTest:
Collaboration diagram for PNGHandlerTest:

List of all members.

Public Member Functions

 testGetImageArea ($filename, $expected)
 testGetIndependentMetaArray ($filename, $expected)
 testGetMetadata ($filename, $expected)
 testInvalidFile ()
 PNGHandler::getMetadata
 testIsAnimanted ($filename, $expected)
 testIsMetadataValid ($metadata, $expected)

Static Public Member Functions

static provideGetImageArea ()
static provideGetIndependentMetaArray ()
static provideGetMetadata ()
static provideIsAnimated ()
static provideIsMetadataValid ()

Protected Member Functions

 setUp ()

Protected Attributes

PNGHandler $handler
 *

Detailed Description

Media

Definition at line 6 of file PNGTest.php.


Member Function Documentation

Definition at line 54 of file PNGTest.php.

References array().

Definition at line 120 of file PNGTest.php.

References array().

Definition at line 99 of file PNGTest.php.

References array().

static PNGHandlerTest::provideIsAnimated ( ) [static]

Definition at line 35 of file PNGTest.php.

References array().

PNGHandlerTest::setUp ( ) [protected]

Reimplemented from MediaWikiMediaTestCase.

Definition at line 10 of file PNGTest.php.

PNGHandlerTest::testGetImageArea ( filename,
expected 
)
Parameters:
string$filename
int$expectedTotal image area provideGetImageArea PNGHandler::getImageArea

Definition at line 48 of file PNGTest.php.

PNGHandlerTest::testGetIndependentMetaArray ( filename,
expected 
)
Parameters:
string$filename
array$expectedExpected standard metadata provideGetIndependentMetaArray PNGHandler::getCommonMetaArray

Definition at line 114 of file PNGTest.php.

PNGHandlerTest::testGetMetadata ( filename,
expected 
)
Parameters:
string$filename
string$expectedSerialized array provideGetMetadata PNGHandler::getMetadata

Definition at line 92 of file PNGTest.php.

PNGHandlerTest::testIsAnimanted ( filename,
expected 
)
Parameters:
string$filenameBasename of the file to check
bool$expectedExpected result. provideIsAnimated PNGHandler::isAnimatedImage

Definition at line 29 of file PNGTest.php.

PNGHandlerTest::testIsMetadataValid ( metadata,
expected 
)
Parameters:
string$metadataSerialized metadata
int$expectedOne of the class constants of PNGHandler provideIsMetadataValid PNGHandler::isMetadataValid

Definition at line 69 of file PNGTest.php.


Member Data Documentation

PNGHandler PNGHandlerTest::$handler [protected]

*

Definition at line 8 of file PNGTest.php.


The documentation for this class was generated from the following file: