From: Rafael Machado Dohms Date: Sun, 19 Jul 2009 01:42:08 +0000 (+0000) Subject: Commiting imagecreatetruecolor tests for PHP_5_3 branch X-Git-Tag: php-5.3.1RC1~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7276e46e164c6dc1ae39199e4dcf0c3088f9a00;p=php Commiting imagecreatetruecolor tests for PHP_5_3 branch --- diff --git a/ext/gd/tests/imagecreatetruecolor_basic.phpt b/ext/gd/tests/imagecreatetruecolor_basic.phpt new file mode 100644 index 0000000000..5c85f52380 --- /dev/null +++ b/ext/gd/tests/imagecreatetruecolor_basic.phpt @@ -0,0 +1,22 @@ +--TEST-- +Testing imagecreatetruecolor() of GD library +--CREDITS-- +Rafael Dohms +--SKIPIF-- + +--FILE-- + +--EXPECT-- +5a8fe9864cbd20e5dbe730c77f30db95 diff --git a/ext/gd/tests/imagecreatetruecolor_error1.phpt b/ext/gd/tests/imagecreatetruecolor_error1.phpt new file mode 100644 index 0000000000..e161688ce0 --- /dev/null +++ b/ext/gd/tests/imagecreatetruecolor_error1.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing imagecreatetruecolor(): error on non-long parameters +--CREDITS-- +Rafael Dohms +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecreatetruecolor() expects parameter 1 to be long, %s given in %s on line %d + +Warning: imagecreatetruecolor() expects parameter 2 to be long, %s given in %s on line %d diff --git a/ext/gd/tests/imagecreatetruecolor_error2.phpt b/ext/gd/tests/imagecreatetruecolor_error2.phpt new file mode 100644 index 0000000000..e4de7e382d --- /dev/null +++ b/ext/gd/tests/imagecreatetruecolor_error2.phpt @@ -0,0 +1,24 @@ +--TEST-- +Testing imagecreatetruecolor(): error on out of bound parameters +--CREDITS-- +Rafael Dohms +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d + +Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d + +Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d + +Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d \ No newline at end of file diff --git a/ext/gd/tests/imagecreatetruecolor_error3.phpt b/ext/gd/tests/imagecreatetruecolor_error3.phpt new file mode 100644 index 0000000000..332cdef3a3 --- /dev/null +++ b/ext/gd/tests/imagecreatetruecolor_error3.phpt @@ -0,0 +1,21 @@ +--TEST-- +Testing imagecreatetruecolor(): error on wrong parameter count +--CREDITS-- +Rafael Dohms +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecreatetruecolor() expects exactly 2 parameters, 0 given in %s on line %d + +Warning: imagecreatetruecolor() expects exactly 2 parameters, 1 given in %s on line %d + +Warning: imagecreatetruecolor() expects exactly 2 parameters, 3 given in %s on line %d \ No newline at end of file