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