Annotation of embedaddon/php/ext/gd/tests/imageloadfont_error1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing that imageloadfont() breaks on non-string first parameter
! 3: --CREDITS--
! 4: Neveo Harrison <neveoo [at] gmail [dot] com> #testfest #tek11
! 5: --SKIPIF--
! 6: <?php
! 7: if (!extension_loaded("gd")) die("skip GD not present");
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: var_dump( imageloadfont(array()) );
! 12: ?>
! 13: --EXPECTF--
! 14: Warning: imageloadfont() expects parameter 1 to be string, array given in %s on line %d
! 15: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>