diff options
author | Felipe Pena <felipe@php.net> | 2009-07-01 00:51:26 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-07-01 00:51:26 +0000 |
commit | 51b78f63065587511929b1d75e797825ac739c81 (patch) | |
tree | 60fbb65c5d6cecfa03b1cbd07a0d3e6d54c8bdaf /ext/gd/tests/imageellipse_error1.phpt | |
parent | 7ef811e1df31dec9f695bf256fb1792cd80b9c51 (diff) | |
download | php-git-51b78f63065587511929b1d75e797825ac739c81.tar.gz |
- New tests (SaoPaulo UG testfest)
Diffstat (limited to 'ext/gd/tests/imageellipse_error1.phpt')
-rwxr-xr-x | ext/gd/tests/imageellipse_error1.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/gd/tests/imageellipse_error1.phpt b/ext/gd/tests/imageellipse_error1.phpt new file mode 100755 index 0000000000..aa8ad789d9 --- /dev/null +++ b/ext/gd/tests/imageellipse_error1.phpt @@ -0,0 +1,21 @@ +--TEST-- +Testing wrong param passing imageellipse() of GD library +--CREDITS-- +Ivan Rosolen <contato [at] ivanrosolen [dot] com> +#testfest PHPSP on 2009-06-30 +--SKIPIF-- +<?php +if (!extension_loaded("gd")) die("skip GD not present"); +?> +--FILE-- +<?php + +// Create a image +$image = imagecreatetruecolor(400, 300); + +// try to draw a white ellipse +imageellipse('wrong param', 200, 150, 300, 200, 16777215); + +?> +--EXPECTF-- +Warning: imageellipse() expects parameter 1 to be resource, %s given in %s on line %d |