Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/ |
--TEST-- Test Imagick, getInterpolateMethod/setInterpolateMethod --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); checkClassMethods('Imagick', array('getInterpolateMethod')); ?> --FILE-- <?php function getInterpolateMethod() { $imagick = new \Imagick(); $value = $imagick->getInterpolateMethod(); echo "Interpolate method is " . $value . "\n"; $imagick->newPseudoImage(640, 480, "gradient:red-blue"); $imagick->setInterpolateMethod(Imagick::INTERPOLATE_BILINEAR); $value = $imagick->getInterpolateMethod(); echo "Interpolate method is now " . $value . "\n"; } getInterpolateMethod() ; echo "Ok"; ?> --EXPECTF-- Interpolate method is 0 Interpolate method is now 5 Ok