MediaWiki  REL1_19
PNGHandlerTest Class Reference
Inheritance diagram for PNGHandlerTest:
Collaboration diagram for PNGHandlerTest:

List of all members.

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)

Detailed Description

Definition at line 2 of file PNGTest.php.


Member Function Documentation

PNGHandlerTest::dataFile ( name,
type 
) [private]

Definition at line 96 of file PNGTest.php.

Referenced by testGetImageArea(), testGetMetadata(), and testIsAnimanted().

Here is the caller graph for this function:

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 4 of file PNGTest.php.

PNGHandlerTest::testGetImageArea ( filename,
expected 
)
Parameters:
$filenameString
$expectedInteger Total image area dataGetImageArea

Definition at line 45 of file PNGTest.php.

References $file, and dataFile().

Here is the call graph for this function:

PNGHandlerTest::testGetMetadata ( filename,
expected 
)
Parameters:
$filenameString
$expectedString Serialized array dataGetMetadata

Definition at line 83 of file PNGTest.php.

References $file, and dataFile().

Here is the call graph for this function:

Definition at line 19 of file PNGTest.php.

References $res, and PNGHandler\BROKEN_FILE.

PNGHandlerTest::testIsAnimanted ( filename,
expected 
)
Parameters:
$filenameString basename of the file to check
$expectedboolean Expected result. dataIsAnimated

Definition at line 28 of file PNGTest.php.

References $file, and dataFile().

Here is the call graph for this function:

PNGHandlerTest::testIsMetadataValid ( metadata,
expected 
)
Parameters:
$metadataString Serialized metadata
$expectedInteger One of the class constants of PNGHandler dataIsMetadataValid

Definition at line 64 of file PNGTest.php.


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