%PDF- %PDF-
Direktori : /opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/ |
Current File : //opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/314_Imagick_getBackgroundColor.phpt |
--TEST-- Test Imagick, getBackgroundColor --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); checkClassMethods('Imagick', array('getBackgroundColor')); ?> --FILE-- <?php function getBackgroundColor() { $imagick = new \Imagick(); $background_color = $imagick->getBackgroundColor(); /** @var $background_color \ImagickPixel */ echo "Color is: " . $background_color->getColorAsString() . "\n"; $imagick->setBackgroundColor('red'); $background_color = $imagick->getBackgroundColor(); /** @var $background_color \ImagickPixel */ echo "Color is now: " . $background_color->getColorAsString() . "\n"; } getBackgroundColor() ; echo "Ok"; ?> --EXPECTF-- Color is: srgb(255,255,255) Color is now: srgb(255,0,0) Ok