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