phpDocumentor ImageMagick
PHPUnit
[ class tree: ImageMagick ] [ index: ImageMagick ] [ all elements ]

Class: ImageMagickToolkitTest

Source Location: /modules/imagemagick/test/phpunit/ImageMagickToolkitTest.class

Class ImageMagickToolkitTest

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryTestCase

GalleryTestCase::$_cleanup

Inherited From GalleryTestCase

GalleryTestCase::GalleryTestCase()
GalleryTestCase::assert()
GalleryTestCase::assertEquals()
GalleryTestCase::assertErrorEquals()
Fail if the provided GalleryStatus object does not contain the given error code.
GalleryTestCase::assertEventFired()
Fail if the provided event name was not fired.
GalleryTestCase::assertEventNotFired()
Fail if the provided event name was fired
GalleryTestCase::DeepCompare()
GalleryTestCase::failWithStatus()
This is deprecated in Gallery 2.3 -- now tests should just return $ret and let the framework generate the right failure message.
GalleryTestCase::getEntityCounter()
Get the entity counter listener which contains the types and number of elements deleted.
GalleryTestCase::setUp()
GalleryTestCase::tearDown()
GalleryTestCase::_array_unshift_key_value()
Utility method to array_unshift a single key => value pair.
GalleryTestCase::_becomeGuestUser()
GalleryTestCase::_createDerivative()
GalleryTestCase::_createLinkedItem()
Create a random link item
GalleryTestCase::_createRandomAlbum()
Create a random album
GalleryTestCase::_createRandomDataItem()
Create a random data item
GalleryTestCase::_createRandomGroup()
Create a random group
GalleryTestCase::_createRandomUser()
Create a random user
GalleryTestCase::_createUser()
GalleryTestCase::_deleteAndVerifyEntity()
GalleryTestCase::_disableUserName()
Convenience method to mark a username as disabled.
GalleryTestCase::_getRootId()
GalleryTestCase::_getUnusedId()
Get an id that is not used for anything.
GalleryTestCase::_initEventListenersForTest()
Disable all but some core event listeners by default.
GalleryTestCase::_markEventListenersForCleanup()
Create a backup of the registered event listeners which will be restored in tearDown.
GalleryTestCase::_markFactoryForCleanup()
Create a backup of the factory data which will be restored in tearDown.
GalleryTestCase::_markFactoryModuleForCleanup()
GalleryTestCase::_markForCleanup()
GalleryTestCase::_markPluginParametersForCleanup()
Store plugin parameters to be restored in tearDown
GalleryTestCase::_markToolkitForCleanup()
GalleryTestCase::_registerEventListener()
Register a The NullEventListener for a test
GalleryTestCase::_registerFactoryImplementationForTest()
Register a factory implementation temporarily for this test.
GalleryTestCase::_registerTestEventListener()
Register and event name and associated listener (deprecated).
GalleryTestCase::_setMarkupType()
Set core parameter for markup type.
GalleryTestCase::_signUrl()
Adds an authToken to the given URL
GalleryTestCase::_unregisterFactoryImplementationForTest()
Unregister a specific factory implementation or all implementations of a spefific type temporarily for this test.
GalleryTestCase::_verifyEntity()
GalleryTestCase::_verifyFields()
GalleryTestCase::_verifyMissing()

[ Top ]
Property Summary
mixed   $_currentEnvironment  
mixed   $_environments  
mixed   $_files  

[ Top ]
Method Summary
ImageMagickToolkitTest   ImageMagickToolkitTest()  
void   setUp()  
void   testBinaries()  
void   testDiscoverMimeTypes()  
void   testGetOperationsAndProperties()  
void   testGetProperties()  
void   testMergeOperations()  
void   testOperationSequence()   Ensure multiple "convert" operations in sequence only makes one exec call. Perform a thumbnail followed by a crop. This is not a commonly performed sequence; normally we do the crop first, however that causes problems with some versions of ImageMagick, and this still serves as a good test for our sequences.
void   testOperationSequenceCropAndGeometrySeparate()   Some versions of ImageMagick bomb if you do a -crop followed by a -geometry. See the comment in the mock platform for more details. So make sure that these are NOT done in a single operation.
void   testOperationSequenceMimeChange()  
void   testOperationSequenceSizeChange()   Ensure queued operations that affect image size are taken into account for subsequent operations..
void   testPercentParameters()  
void   testPerformOperations()  
void   testPngQuality()  
void   _envName()  
void   _setEnvironment()   Prepare to emulate a different version of IM/GM
GalleryStatus   _testOperation()   Helper to test a certain operation

[ Top ]
Properties
mixed   $_currentEnvironment = array() [line 45]

[ Top ]
mixed   $_environments = array() [line 40]

[ Top ]
mixed   $_files = array() [line 53]

[ Top ]
Methods
Constructor ImageMagickToolkitTest  [line 55]

  ImageMagickToolkitTest ImageMagickToolkitTest( $methodName  )

Parameters:
   $methodName: 


[ Top ]
setUp  [line 63]

  void setUp( )



Redefinition of:
GalleryTestCase::setUp()

[ Top ]
testBinaries  [line 908]

  void testBinaries( )



[ Top ]
testDiscoverMimeTypes  [line 730]

  void testDiscoverMimeTypes( )



[ Top ]
testGetOperationsAndProperties  [line 743]

  void testGetOperationsAndProperties( )



[ Top ]
testGetProperties  [line 624]

  void testGetProperties( )



[ Top ]
testMergeOperations  [line 658]

  void testMergeOperations( )



[ Top ]
testOperationSequence  [line 392]

  void testOperationSequence( )

Ensure multiple "convert" operations in sequence only makes one exec call. Perform a thumbnail followed by a crop. This is not a commonly performed sequence; normally we do the crop first, however that causes problems with some versions of ImageMagick, and this still serves as a good test for our sequences.



[ Top ]
testOperationSequenceCropAndGeometrySeparate  [line 449]

  void testOperationSequenceCropAndGeometrySeparate( )

Some versions of ImageMagick bomb if you do a -crop followed by a -geometry. See the comment in the mock platform for more details. So make sure that these are NOT done in a single operation.



[ Top ]
testOperationSequenceMimeChange  [line 578]

  void testOperationSequenceMimeChange( )



[ Top ]
testOperationSequenceSizeChange  [line 506]

  void testOperationSequenceSizeChange( )

Ensure queued operations that affect image size are taken into account for subsequent operations..



[ Top ]
testPercentParameters  [line 332]

  void testPercentParameters( )



[ Top ]
testPerformOperations  [line 206]

  void testPerformOperations( )



[ Top ]
testPngQuality  [line 362]

  void testPngQuality( )



[ Top ]
_envName  [line 118]

  void _envName( )



[ Top ]
_setEnvironment  [line 98]

  void _setEnvironment( array $environment  )

Prepare to emulate a different version of IM/GM

Parameters:
array   $environment:  the array item of the environment

API Tags:
Access:  private


[ Top ]
_testOperation  [line 135]

  GalleryStatus _testOperation( string $mimeType, string $operation, string $src, string $dst, array $params, array $namedParams, [string $quality = null]  )

Helper to test a certain operation

Parameters:
string   $mimeType: 
string   $operation: 
string   $src:  filename
string   $dst:  filename
array   $params:  indexed array
array   $namedParams:  assoc-array with paramName=>paramValue
string   $quality:  (optional)

API Tags:
Access:  private


[ Top ]

Documentation generated on Sat, 21 Nov 2009 04:55:57 -0800 by phpDocumentor 1.3.0RC6