Annotation of embedaddon/php/ext/gd/tests/colormatch.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: imagecolormatch
! 3: --SKIPIF--
! 4: <?php
! 5: if (!function_exists('imagecolormatch')) die("skip gd extension not available\n");
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9:
! 10: $im = imagecreatetruecolor(5,5);
! 11: $im2 = imagecreate(5,5);
! 12:
! 13: imagecolormatch($im, $im2);
! 14:
! 15: echo "ok\n";
! 16:
! 17: imagedestroy($im);
! 18: ?>
! 19: --EXPECTF--
! 20: Warning: imagecolormatch(): Image2 must have at least one color in %s on line %d
! 21: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>