Annotation of embedaddon/php/ext/gd/tests/imagepolygon_negative.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: imagepolygon() with a negative num of points
! 3: --SKIPIF--
! 4: <?php
! 5: if (!function_exists('imagepolygon')) die('skip imagepolygon() not available');
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: $im = imagecreate(100, 100);
! 10: $black = imagecolorallocate($im, 0, 0, 0);
! 11: if (imagepolygon($im, array(0, 0, 0, 0, 0, 0), -1, $black)) echo "should be false";
! 12: imagedestroy($im);
! 13: ?>
! 14: --EXPECTF--
! 15: Warning: imagepolygon(): You must give a positive number of points in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>