Annotation of embedaddon/php/ext/gd/tests/imageistruecolor_error1.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing imageistruecolor(): wrong parameters
3: --CREDITS--
4: Rafael 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:
15: imageistruecolor('string');
16: imageistruecolor($resource);
17: imageistruecolor(array());
18: ?>
19: --EXPECTF--
20: Warning: imageistruecolor() expects parameter 1 to be resource, string given in %s on line %d
21:
22: Warning: imageistruecolor(): supplied resource is not a valid Image resource in %s on line %d
23:
24: Warning: imageistruecolor() expects parameter 1 to be resource, array given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>