ok

Mini Shell

Direktori : /opt/cpanel/ea-php56/root/usr/share/tests/pecl/imagick/tests/
Upload File :
Current File : //opt/cpanel/ea-php56/root/usr/share/tests/pecl/imagick/tests/159_Imagick_transformImage_basic.phpt

--TEST--
Test Imagick, transformImage
--SKIPIF--
<?php
$imageMagickRequiredVersion=0x675;
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('transformimage'));
?>
--FILE--
<?php


function transformimage() {
    $imagick = new \Imagick();
    $imagick->newPseudoImage(640, 480, "magick:logo");
    $newImage = $imagick->transformimage("400x600", "200x300");
    $bytes = $newImage->getImageBlob();
    if (strlen($bytes) <= 0) { echo "Failed to generate image.";} 
}

transformimage() ;
echo "Ok";
?>
--EXPECTF--
Deprecated: Function Imagick::transformimage() is deprecated in %s
Ok

Zerion Mini Shell 1.0