Annotation of embedaddon/php/ext/gd/tests/imagesetthickness_error1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing imagetruecolortopalette(): wrong types for first parameter
! 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: ?>
! 9: --FILE--
! 10: <?php
! 11: $resource = tmpfile();
! 12:
! 13: imagesetthickness('string', 5);
! 14: imagesetthickness(array(), 5);
! 15: imagesetthickness($resource, 5);
! 16: ?>
! 17: --EXPECTF--
! 18: Warning: imagesetthickness() expects parameter 1 to be resource, %s given in %s on line %d
! 19:
! 20: Warning: imagesetthickness() expects parameter 1 to be resource, array given in %s on line %d
! 21:
! 22: Warning: imagesetthickness(): supplied resource is not a valid Image resource in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>