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