diff options
Diffstat (limited to 'ext/gd/tests/imageinterlace_error1.phpt')
-rw-r--r-- | ext/gd/tests/imageinterlace_error1.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/gd/tests/imageinterlace_error1.phpt b/ext/gd/tests/imageinterlace_error1.phpt new file mode 100644 index 0000000..5c871e7 --- /dev/null +++ b/ext/gd/tests/imageinterlace_error1.phpt @@ -0,0 +1,20 @@ +--TEST-- +Testing passing no parameters to imageinterlace() of GD library +--CREDITS-- +Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br> +#testfest PHPSP on 2009-06-20 +--SKIPIF-- +<?php +if (!extension_loaded("gd")) die("skip GD not present"); +?> +--FILE-- +<?php + +$image = imagecreatetruecolor(100, 100); + +//calling with no parameters +var_dump(imageinterlace()); +?> +--EXPECTF-- +Warning: imageinterlace() expects at least 1 parameter, 0 given in %s on line %d +NULL |