1--TEST--
2Test Imagick::setImageArtifact and Imagick::getImageArtifact
3--SKIPIF--
4<?php
5
6$imageMagickRequiredVersion = 0x656;
7
8require_once(dirname(__FILE__) . '/skipif.inc');
9checkClassMethods('Imagick', array('setImageArtifact', 'getImageArtifact', 'deleteImageArtifact'));
10
11?>
12--FILE--
13<?php
14
15$im = new IMagick(__DIR__ . '/php.gif');
16
17/* Examle from http://php.net/manual/de/imagick.setimageartifact.php */
18var_dump($im->setImageArtifact('compose:args', '1,0,-0.5,0.5'));
19
20var_dump($im->getImageArtifact('compose:args'));
21var_dump($im->deleteImageArtifact('compose:args'));
22
23?>
24--EXPECT--
25bool(true)
26string(12) "1,0,-0.5,0.5"
27bool(true)