From: Robert Nicholson Date: Fri, 1 Feb 2008 16:33:17 +0000 (+0000) Subject: - a few more gd tests (committed on behalf of andy wharmby) X-Git-Tag: RELEASE_1_3_1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7de596df2334e19b92d6eb8818ce9fcf8006f6a;p=php - a few more gd tests (committed on behalf of andy wharmby) --- diff --git a/ext/gd/tests/gd_info_basic.phpt b/ext/gd/tests/gd_info_basic.phpt new file mode 100644 index 0000000000..61a2304e8f --- /dev/null +++ b/ext/gd/tests/gd_info_basic.phpt @@ -0,0 +1,29 @@ +--TEST-- +gd_info() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +basic test of gd_info() function +array(%d) { +%a +} + +Done diff --git a/ext/gd/tests/image_type_to_mime_type_basic.phpt b/ext/gd/tests/image_type_to_mime_type_basic.phpt new file mode 100644 index 0000000000..7384c46328 --- /dev/null +++ b/ext/gd/tests/image_type_to_mime_type_basic.phpt @@ -0,0 +1,64 @@ +--TEST-- +image_type_to_mime_type() +--SKIPIF-- + +--FILE-- + +--EXPECT-- +Starting image_type_to_mime_type() test + +string(9) "image/gif" +string(10) "image/jpeg" +string(9) "image/png" +string(29) "application/x-shockwave-flash" +string(9) "image/psd" +string(9) "image/bmp" +string(10) "image/tiff" +string(10) "image/tiff" +string(24) "application/octet-stream" +string(9) "image/jp2" +string(24) "application/octet-stream" +string(24) "application/octet-stream" +string(9) "image/iff" +string(18) "image/vnd.wap.wbmp" +string(24) "application/octet-stream" +string(9) "image/xbm" + +Done image_type_to_mime_type() test \ No newline at end of file diff --git a/ext/gd/tests/imagecopyresampled_basic.phpt b/ext/gd/tests/imagecopyresampled_basic.phpt new file mode 100644 index 0000000000..12ac155119 --- /dev/null +++ b/ext/gd/tests/imagecopyresampled_basic.phpt @@ -0,0 +1,71 @@ +--TEST-- +imagecopyresampled() +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECT-- +Simple test of imagecopyresampled() function +Size of orginal: width=400 height=300 +Size of copy: width=200 height=150 +Done diff --git a/ext/gd/tests/imagedashedline_basic.phpt b/ext/gd/tests/imagedashedline_basic.phpt new file mode 100644 index 0000000000..1d67975208 --- /dev/null +++ b/ext/gd/tests/imagedashedline_basic.phpt @@ -0,0 +1,78 @@ +--TEST-- +imagedashedline() +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECT-- +Simple test of imagedashedline() function +array(4) { + ["red"]=> + int(255) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +array(4) { + ["red"]=> + int(0) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +Done diff --git a/ext/gd/tests/imagefilledpolygon_basic.phpt b/ext/gd/tests/imagefilledpolygon_basic.phpt new file mode 100644 index 0000000000..6871a28b73 --- /dev/null +++ b/ext/gd/tests/imagefilledpolygon_basic.phpt @@ -0,0 +1,102 @@ +--TEST-- +imagefilledpolygon() +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECT-- +Simple test of imagefilledpolygon() function +array(4) { + ["red"]=> + int(0) + ["green"]=> + int(255) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +array(4) { + ["red"]=> + int(0) + ["green"]=> + int(255) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +array(4) { + ["red"]=> + int(0) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +Done diff --git a/ext/gd/tests/imagepolygon_basic.phpt b/ext/gd/tests/imagepolygon_basic.phpt new file mode 100644 index 0000000000..5c79cdf5be --- /dev/null +++ b/ext/gd/tests/imagepolygon_basic.phpt @@ -0,0 +1,80 @@ +--TEST-- +imageploygon() +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECT-- +Simple test of imagepolygon() function +array(4) { + ["red"]=> + int(255) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +array(4) { + ["red"]=> + int(0) + ["green"]=> + int(0) + ["blue"]=> + int(0) + ["alpha"]=> + int(0) +} +Done