1--TEST--
2Test Imagick, roundCorners
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7
8checkClassMethods('Imagick', array('roundCornersImage'));
9?>
10--FILE--
11<?php
12
13
14function roundCorners() {
15    $imagick = new \Imagick();
16    $imagick->newPseudoImage(640, 480, "magick:logo");
17    $imagick->setBackgroundColor('red');
18
19    $imagick->setbackgroundcolor('pink');
20
21    $x_rounding = 40;
22    $y_rounding = 40;
23    $stroke_width = 5;
24    $displace = 0;
25    $size_correction = 0;
26
27    $imagick->roundCornersImage(
28            $x_rounding,
29                $y_rounding,
30                $stroke_width,
31                $displace,
32                $size_correction
33    );
34
35    $bytes = $imagick->getImageBlob();
36    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
37}
38
39roundCorners() ;
40echo "Ok";
41?>
42--EXPECTF--
43Deprecated: %s Imagick::roundCornersImage() is deprecated in %s
44Ok
45