1--TEST-- 2Test Imagick, orderedPosterizeImage 3--SKIPIF-- 4<?php 5$imageMagickRequiredVersion=0x675; 6require_once(dirname(__FILE__) . '/skipif.inc'); 7 8checkClassMethods('Imagick', array('orderedPosterizeImage')); 9?> 10--FILE-- 11<?php 12 13$orderedPosterizeType = "o8x8"; 14 15function orderedPosterizeImage($orderedPosterizeType) { 16 $imagick = new \Imagick(); 17 $imagick->newPseudoImage(640, 480, "magick:logo"); 18 19 20 $imagick->orderedPosterizeImage($orderedPosterizeType); 21 $imagick->setImageFormat('png'); 22 23 $bytes = $imagick->getImageBlob(); 24 if (strlen($bytes) <= 0) { echo "Failed to generate image.";} 25} 26 27orderedPosterizeImage($orderedPosterizeType) ; 28echo "Ok"; 29?> 30--EXPECTF-- 31Deprecated: %s Imagick::orderedPosterizeImage() is deprecated in %S 32Ok 33