1--TEST-- 2Test Imagick, raiseImage 3--SKIPIF-- 4<?php 5$imageMagickRequiredVersion=0x675; 6require_once(dirname(__FILE__) . '/skipif.inc'); 7?> 8--FILE-- 9<?php 10 11$width = 15; 12$height = 15; 13$x = 10; 14$y = 10; 15$raise = 1; 16 17function raiseImage($width, $height, $x, $y, $raise) { 18 $imagick = new \Imagick(); 19 $imagick->newPseudoImage(640, 480, "magick:logo"); 20 21 //x and y do nothing? 22 $imagick->raiseImage($width, $height, $x, $y, $raise); 23 $bytes = $imagick->getImageBlob(); 24 if (strlen($bytes) <= 0) { echo "Failed to generate image.";} 25} 26 27raiseImage($width, $height, $x, $y, $raise) ; 28echo "Ok"; 29?> 30--EXPECTF-- 31Ok