1--TEST--
2Testing imageistruecolor(): wrong parameters
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5--SKIPIF--
6<?php
7	if (!extension_loaded("gd")) die("skip GD not present");
8	if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible");
9?>
10--FILE--
11<?php
12$image = imagecreatetruecolor(180, 30);
13$resource = tmpfile();
14
15imageistruecolor('string');
16imageistruecolor($resource);
17imageistruecolor(array());
18?>
19--EXPECTF--
20Warning: imageistruecolor() expects parameter 1 to be resource, string given in %s on line %d
21
22Warning: imageistruecolor(): supplied resource is not a valid Image resource in %s on line %d
23
24Warning: imageistruecolor() expects parameter 1 to be resource, array given in %s on line %d
25