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