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

List of all members.

Public Member Functions

 testGetImageArea ($filename, $expected)
 testGetMetadata ($filename, $expected)
 testInvalidFile ()
 GIFHandler::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
 *
GIFHandler $handler
 *
FSRepo $repo
 *

Private Member Functions

 dataFile ($name, $type)

Detailed Description

Definition at line 2 of file GIFTest.php.


Member Function Documentation

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

Definition at line 112 of file GIFTest.php.

Definition at line 65 of file GIFTest.php.

Definition at line 105 of file GIFTest.php.

static GIFHandlerTest::provideIsAnimated ( ) [static]

Definition at line 46 of file GIFTest.php.

Definition at line 83 of file GIFTest.php.

GIFHandlerTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 9 of file GIFTest.php.

References array().

GIFHandlerTest::testGetImageArea ( filename,
expected 
)
Parameters:
$filenameString
$expectedInteger Total image area provideGetImageArea GIFHandler::getImageArea

Definition at line 59 of file GIFTest.php.

GIFHandlerTest::testGetMetadata ( filename,
expected 
)
Parameters:
$filenameString
$expectedString Serialized array provideGetMetadata GIFHandler::getMetadata

Definition at line 99 of file GIFTest.php.

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

Definition at line 40 of file GIFTest.php.

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

Definition at line 78 of file GIFTest.php.


Member Data Documentation

FSFileBackend GIFHandlerTest::$backend [protected]

*

Definition at line 4 of file GIFTest.php.

string GIFHandlerTest::$filePath [protected]

*

Definition at line 7 of file GIFTest.php.

GIFHandler GIFHandlerTest::$handler [protected]

*

Definition at line 5 of file GIFTest.php.

FSRepo GIFHandlerTest::$repo [protected]

*

Definition at line 6 of file GIFTest.php.


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