1--TEST-- 2Test pseudo formats 3--SKIPIF-- 4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> 5--FILE-- 6<?php 7 8$im = new Imagick(); 9$im->newPseudoImage(100, 100, "XC:red"); 10var_dump($im->getImageGeometry()); 11 12$im->newPseudoImage(10, 10, "magick:logo"); 13var_dump($im->getImageGeometry()); 14 15$im->readImage("magick:logo"); 16var_dump($im->getImageGeometry()); 17 18$im->newPseudoImage(10, 10, "rose:"); 19var_dump($im->getImageGeometry()); 20 21try { 22$im->newPseudoImage(10, 10, "png:"); 23var_dump($im->getImageGeometry()); 24} catch (Exception $e) { 25 echo "fail\n"; 26} 27 28?> 29--EXPECTF-- 30array(2) { 31 ["width"]=> 32 int(%d) 33 ["height"]=> 34 int(%d) 35} 36array(2) { 37 ["width"]=> 38 int(%d) 39 ["height"]=> 40 int(%d) 41} 42array(2) { 43 ["width"]=> 44 int(%d) 45 ["height"]=> 46 int(%d) 47} 48array(2) { 49 ["width"]=> 50 int(%d) 51 ["height"]=> 52 int(%d) 53} 54fail