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

List of all members.

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)

Detailed Description

Definition at line 2 of file PNGTest.php.


Member Function Documentation

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

Definition at line 115 of file PNGTest.php.

Definition at line 65 of file PNGTest.php.

Definition at line 108 of file PNGTest.php.

static PNGHandlerTest::provideIsAnimated ( ) [static]

Definition at line 46 of file PNGTest.php.

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 
)
Parameters:
$filenameString
$expectedInteger Total image area provideGetImageArea PNGHandler::getImageArea

Definition at line 59 of file PNGTest.php.

PNGHandlerTest::testGetMetadata ( filename,
expected 
)
Parameters:
$filenameString
$expectedString Serialized array provideGetMetadata PNGHandler::getMetadata

Definition at line 101 of file PNGTest.php.

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

Definition at line 40 of file PNGTest.php.

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

Definition at line 80 of file PNGTest.php.


Member Data Documentation

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.


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