diff options
Diffstat (limited to 'tests/caferrari/imagepalettetotruecolor_error2.phpt')
-rw-r--r-- | tests/caferrari/imagepalettetotruecolor_error2.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/caferrari/imagepalettetotruecolor_error2.phpt b/tests/caferrari/imagepalettetotruecolor_error2.phpt new file mode 100644 index 0000000000..7a9a9ce574 --- /dev/null +++ b/tests/caferrari/imagepalettetotruecolor_error2.phpt @@ -0,0 +1,14 @@ +--TEST-- +imagepalettetotruecollor must return an error if not a resource is given +--CREDITS-- +Carlos André Ferrari <caferrari [at] gmail [dot] com> +--SKIPIF-- +<?php + if (!extension_loaded('gd')) die("skip gd extension not available."); +?> +--FILE-- +<?php +imagepalettetotruecolor("bla"); +?> +--EXPECTF-- +Warning: imagepalettetotruecolor() expects parameter 1 to be resource, string given in %s on line %d |