1--TEST--
2Test identifyImageType
3--SKIPIF--
4<?php
5
6require_once(dirname(__FILE__) . '/skipif.inc');
7checkClassMethods('Imagick', array('identifyImageType'));
8
9?>
10--FILE--
11<?php
12
13$im = new Imagick();
14$im->newPseudoImage(100, 100, "magick:logo");
15
16$type = $im->identifyImageType();
17
18if ($type !== Imagick::IMGTYPE_PALETTE) {
19	echo "Unexpected type value. Expecting: ".Imagick::IMGTYPE_PALETTE.", but got $type. \n";
20}
21echo "Ok";
22
23?>
24--EXPECTF--
25Ok