diff options
author | Felipe Pena <felipe@php.net> | 2009-07-01 00:56:01 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-07-01 00:56:01 +0000 |
commit | db6f5e67a8ce0c6a4a1e936942cd99a86cb8a59f (patch) | |
tree | 2126df891eeea7365dacf52b31d177038b3f2ff5 /ext/gd/tests/imagestring_error3.phpt | |
parent | 2361b4ea2a640fe11c615fdeac6e8b27f86340a0 (diff) | |
download | php-git-db6f5e67a8ce0c6a4a1e936942cd99a86cb8a59f.tar.gz |
- MFH: New tests (SaoPaulo UG testfest)
Diffstat (limited to 'ext/gd/tests/imagestring_error3.phpt')
-rw-r--r-- | ext/gd/tests/imagestring_error3.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/gd/tests/imagestring_error3.phpt b/ext/gd/tests/imagestring_error3.phpt new file mode 100644 index 0000000000..d9a9e47d24 --- /dev/null +++ b/ext/gd/tests/imagestring_error3.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-long parameter 2 of imagestring() of GD library +--CREDITS-- +Rafael Dohms <rdohms [at] gmail [dot] com> +#testfest PHPSP on 2009-06-20 +--SKIPIF-- +<?php + if (!extension_loaded("gd")) die("skip GD not present"); +?> +--FILE-- +<?php +$image = imagecreatetruecolor(180, 30); +$result = imagestring($image, 'string', 5, 5, 'String', 1); + +?> +--EXPECTF-- +Warning: imagestring() expects parameter 2 to be long, %s given in %s on line %d |