diff options
Diffstat (limited to 'tests/caferrari/imagepalettetotruecolor_error1.phpt')
-rw-r--r-- | tests/caferrari/imagepalettetotruecolor_error1.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/caferrari/imagepalettetotruecolor_error1.phpt b/tests/caferrari/imagepalettetotruecolor_error1.phpt new file mode 100644 index 0000000000..3c994e59a2 --- /dev/null +++ b/tests/caferrari/imagepalettetotruecolor_error1.phpt @@ -0,0 +1,14 @@ +--TEST-- +imagepalettetotruecollor must return an error if no 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(); +?> +--EXPECTF-- +Warning: imagepalettetotruecolor() expects exactly 1 parameter, 0 given in %s on line %d |