1--TEST--
2Test Imagick, distortImage
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11$distortion = 1;
12
13        //v6.4.2-6
14        $imagick = new \Imagick();
15    $imagick->newPseudoImage(640, 480, "magick:logo");
16        $points = array(
17            0
18        );
19
20        $imagick->setimagebackgroundcolor("#fad888");
21        $imagick->setImageVirtualPixelMethod( \Imagick::VIRTUALPIXELMETHOD_BACKGROUND);
22        $imagick->distortImage(\Imagick::DISTORTION_DEPOLAR, $points, TRUE);
23    $bytes = $imagick;
24    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
25
26echo "Ok";
27?>
28--EXPECTF--
29Ok