PHP Class ImboIntegrationTest\Image\Transformation\WatermarkTest

Inheritance: extends ImboIntegrationTest\Image\Transformation\TransformationTests
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
getParamsForWatermarks ( ) : array[] Data provider
testApplyToImageTopLeftWithOnlyWidthAndDefaultWatermark ( $params, $colors )

Protected Methods

Method 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 method

Data provider
public getParamsForWatermarks ( ) : array[]
return array[]

getTransformation() protected method

protected getTransformation ( )

testApplyToImageTopLeftWithOnlyWidthAndDefaultWatermark() public method

verifyColor() protected method

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