Annotation of embedaddon/php/ext/gd/tests/imagecreatetruecolor_error3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing imagecreatetruecolor(): error on wrong parameter count
! 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();
! 13: $image = imagecreatetruecolor(30);
! 14: $image = imagecreatetruecolor(1,1,1);
! 15: ?>
! 16: --EXPECTF--
! 17: Warning: imagecreatetruecolor() expects exactly 2 parameters, 0 given in %s on line %d
! 18:
! 19: Warning: imagecreatetruecolor() expects exactly 2 parameters, 1 given in %s on line %d
! 20:
! 21: Warning: imagecreatetruecolor() expects exactly 2 parameters, 3 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>