1--TEST--
2Test Imagick, newPseudoImage
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8$canvasType = 'gradient:red';
9
10function newPseudoImage($canvasType) {
11    $imagick = new \Imagick();
12    $imagick->newPseudoImage(300, 300, $canvasType);
13    $imagick->setImageFormat("png");
14    $bytes = $imagick->getImageBlob();
15    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
16}
17
18newPseudoImage($canvasType) ;
19echo "Ok";
20?>
21--EXPECTF--
22Ok
23