Sindbad~EG File Manager

Current Path : /proc/thread-self/root/opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/
Upload File :
Current File : //proc/thread-self/root/opt/cpanel/ea-php74/root/usr/share/tests/pecl/imagick/tests/008_newpseudoimage.phpt

--TEST--
Test pseudo formats
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php

$im = new Imagick();
$im->newPseudoImage(100, 100, "XC:red");
var_dump($im->getImageGeometry());

$im->newPseudoImage(10, 10, "magick:logo");
var_dump($im->getImageGeometry());

$im->readImage("magick:logo");
var_dump($im->getImageGeometry());

$im->newPseudoImage(10, 10, "rose:");
var_dump($im->getImageGeometry());

try { 
$im->newPseudoImage(10, 10, "png:");
var_dump($im->getImageGeometry());
} catch (Exception $e) {
	echo "fail\n";
}

?>
--EXPECTF--
array(2) {
  ["width"]=>
  int(%d)
  ["height"]=>
  int(%d)
}
array(2) {
  ["width"]=>
  int(%d)
  ["height"]=>
  int(%d)
}
array(2) {
  ["width"]=>
  int(%d)
  ["height"]=>
  int(%d)
}
array(2) {
  ["width"]=>
  int(%d)
  ["height"]=>
  int(%d)
}
fail

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists