PHP Class ImboIntegrationTest\Image\Transformation\WatermarkTest

Inheritance: extends ImboIntegrationTest\Image\Transformation\TransformationTests
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode Description
getParamsForWatermarks ( ) : array[] Data provider
testApplyToImageTopLeftWithOnlyWidthAndDefaultWatermark ( $params, $colors )

Méthodes protégées

Méthode Description
getTransformation ( )
verifyColor ( Imagick $imagick, integer $x, integer $y, array $expectedRgb ) Verifies that the given image has a pixel with the given color value at the given position

Method Details

getParamsForWatermarks() public méthode

Data provider
public getParamsForWatermarks ( ) : array[]
Résultat array[]

getTransformation() protected méthode

protected getTransformation ( )

testApplyToImageTopLeftWithOnlyWidthAndDefaultWatermark() public méthode

verifyColor() protected méthode

Verifies that the given image has a pixel with the given color value at the given position
protected verifyColor ( Imagick $imagick, integer $x, integer $y, array $expectedRgb )
$imagick Imagick The imagick instance to verify
$x integer X position to check
$y integer Y position to check
$expectedRgb array Expected color value, in RGB format, as array