From 984737ae6363b2717f855dcbf50a7d2ed473e7e4 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 1 Jul 2009 02:36:28 +0000 Subject: [PATCH] - New tests --- ext/gd/tests/imageantialias_error1.phpt | 18 ++++++++ ext/gd/tests/imageantialias_error2.phpt | 23 ++++++++++ ext/gd/tests/imagearc_basic.phpt | 28 ++++++++++++ ext/gd/tests/imagearc_error1.phpt | 29 +++++++++++++ ext/gd/tests/imagearc_variation1.phpt | 28 ++++++++++++ ext/gd/tests/imagearc_variation2.phpt | 28 ++++++++++++ ext/gd/tests/imagechar_basic.phpt | 25 +++++++++++ ext/gd/tests/imagechar_error1.phpt | 17 ++++++++ ext/gd/tests/imagechar_error2.phpt | 17 ++++++++ ext/gd/tests/imagecharup_basic.phpt | 25 +++++++++++ ext/gd/tests/imagecharup_error1.phpt | 17 ++++++++ ext/gd/tests/imagecharup_error2.phpt | 17 ++++++++ ext/gd/tests/imagecolordeallocate_basic.phpt | 21 +++++++++ ext/gd/tests/imagecolordeallocate_error1.phpt | 22 ++++++++++ ext/gd/tests/imagecolordeallocate_error2.phpt | 19 ++++++++ ext/gd/tests/imagecolordeallocate_error3.phpt | 22 ++++++++++ ext/gd/tests/imagecolordeallocate_error4.phpt | 22 ++++++++++ ext/gd/tests/imagecolormatch_basic.phpt | 19 ++++++++ ext/gd/tests/imagecolormatch_error1.phpt | 18 ++++++++ ext/gd/tests/imagecolormatch_error2.phpt | 20 +++++++++ ext/gd/tests/imagecolormatch_error3.phpt | 20 +++++++++ ext/gd/tests/imagecolormatch_error4.phpt | 20 +++++++++ ext/gd/tests/imagecolorset_basic.phpt | 35 +++++++++++++++ ext/gd/tests/imageconvolution_basic.phpt | 33 ++++++++++++++ ext/gd/tests/imageconvolution_error1.phpt | 27 ++++++++++++ ext/gd/tests/imageconvolution_error2.phpt | 26 +++++++++++ ext/gd/tests/imageconvolution_error3.phpt | 27 ++++++++++++ ext/gd/tests/imagecopymerge_basic.phpt | 30 +++++++++++++ ext/gd/tests/imagecopymerge_error.phpt | 17 ++++++++ ext/gd/tests/imageellipse_basic.phpt | 27 ++++++++++++ ext/gd/tests/imageellipse_error1.phpt | 21 +++++++++ ext/gd/tests/imageellipse_error7.phpt | 20 +++++++++ ext/gd/tests/imagefilledarc_basic.phpt | 28 ++++++++++++ ext/gd/tests/imagefilledarc_error1.phpt | 29 +++++++++++++ ext/gd/tests/imagefilledarc_variation1.phpt | 28 ++++++++++++ ext/gd/tests/imagefilledarc_variation2.phpt | 28 ++++++++++++ ext/gd/tests/imagefilltoborder_basic.phpt | 33 ++++++++++++++ ext/gd/tests/imagefilltoborder_error1.phpt | 26 +++++++++++ ext/gd/tests/imagefilltoborder_error6.phpt | 29 +++++++++++++ ext/gd/tests/imagefilter_error1.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error10.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error11.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error12.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error13.phpt | 17 ++++++++ ext/gd/tests/imagefilter_error14.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error15.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error16.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error17.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error18.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error19.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error2.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error20.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error5.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error6.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error7.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error8.phpt | 18 ++++++++ ext/gd/tests/imagefilter_error9.phpt | 18 ++++++++ ext/gd/tests/imagefontheight_basic.phpt | 19 ++++++++ ext/gd/tests/imagefontwidth_basic.phpt | 21 +++++++++ ext/gd/tests/imagegammacorrect_basic.phpt | 32 ++++++++++++++ ext/gd/tests/imagegammacorrect_error1.phpt | 17 ++++++++ ext/gd/tests/imagegammacorrect_error2.phpt | 17 ++++++++ ext/gd/tests/imageinterlace_basic.phpt | 17 ++++++++ ext/gd/tests/imageinterlace_error1.phpt | 20 +++++++++ ext/gd/tests/imageinterlace_error2.phpt | 17 ++++++++ ext/gd/tests/imageinterlace_variation1.phpt | 20 +++++++++ ext/gd/tests/imageinterlace_variation2.phpt | 24 +++++++++++ ext/gd/tests/imagelayereffect_basic.phpt | 27 ++++++++++++ ext/gd/tests/imagelayereffect_error1.phpt | 16 +++++++ ext/gd/tests/imagelayereffect_error3.phpt | 17 ++++++++ ext/gd/tests/imagesetbrush_basic.phpt | 37 ++++++++++++++++ ext/gd/tests/imagestring_basic.phpt | 25 +++++++++++ ext/gd/tests/imagestring_error1.phpt | 17 ++++++++ ext/gd/tests/imagestring_error2.phpt | 17 ++++++++ ext/gd/tests/imagestringup_basic.phpt | 25 +++++++++++ ext/gd/tests/imagestringup_error1.phpt | 17 ++++++++ ext/gd/tests/imagestringup_error2.phpt | 17 ++++++++ ext/gd/tests/jpeg2wbmp_error1.phpt | 42 ++++++++++++++++++ ext/gd/tests/jpeg2wbmp_error2.phpt | 31 +++++++++++++ ext/gd/tests/jpeg2wbmp_error3.phpt | 43 +++++++++++++++++++ ext/gd/tests/png2wbmp_error1.phpt | 42 ++++++++++++++++++ ext/gd/tests/png2wbmp_error2.phpt | 31 +++++++++++++ ext/gd/tests/png2wbmp_error3.phpt | 43 +++++++++++++++++++ 83 files changed, 1913 insertions(+) create mode 100755 ext/gd/tests/imageantialias_error1.phpt create mode 100755 ext/gd/tests/imageantialias_error2.phpt create mode 100755 ext/gd/tests/imagearc_basic.phpt create mode 100755 ext/gd/tests/imagearc_error1.phpt create mode 100755 ext/gd/tests/imagearc_variation1.phpt create mode 100755 ext/gd/tests/imagearc_variation2.phpt create mode 100644 ext/gd/tests/imagechar_basic.phpt create mode 100644 ext/gd/tests/imagechar_error1.phpt create mode 100644 ext/gd/tests/imagechar_error2.phpt create mode 100644 ext/gd/tests/imagecharup_basic.phpt create mode 100644 ext/gd/tests/imagecharup_error1.phpt create mode 100644 ext/gd/tests/imagecharup_error2.phpt create mode 100644 ext/gd/tests/imagecolordeallocate_basic.phpt create mode 100644 ext/gd/tests/imagecolordeallocate_error1.phpt create mode 100644 ext/gd/tests/imagecolordeallocate_error2.phpt create mode 100644 ext/gd/tests/imagecolordeallocate_error3.phpt create mode 100644 ext/gd/tests/imagecolordeallocate_error4.phpt create mode 100755 ext/gd/tests/imagecolormatch_basic.phpt create mode 100755 ext/gd/tests/imagecolormatch_error1.phpt create mode 100755 ext/gd/tests/imagecolormatch_error2.phpt create mode 100755 ext/gd/tests/imagecolormatch_error3.phpt create mode 100755 ext/gd/tests/imagecolormatch_error4.phpt create mode 100755 ext/gd/tests/imagecolorset_basic.phpt create mode 100755 ext/gd/tests/imageconvolution_basic.phpt create mode 100755 ext/gd/tests/imageconvolution_error1.phpt create mode 100755 ext/gd/tests/imageconvolution_error2.phpt create mode 100755 ext/gd/tests/imageconvolution_error3.phpt create mode 100755 ext/gd/tests/imagecopymerge_basic.phpt create mode 100755 ext/gd/tests/imagecopymerge_error.phpt create mode 100755 ext/gd/tests/imageellipse_basic.phpt create mode 100755 ext/gd/tests/imageellipse_error1.phpt create mode 100755 ext/gd/tests/imageellipse_error7.phpt create mode 100755 ext/gd/tests/imagefilledarc_basic.phpt create mode 100755 ext/gd/tests/imagefilledarc_error1.phpt create mode 100755 ext/gd/tests/imagefilledarc_variation1.phpt create mode 100755 ext/gd/tests/imagefilledarc_variation2.phpt create mode 100755 ext/gd/tests/imagefilltoborder_basic.phpt create mode 100755 ext/gd/tests/imagefilltoborder_error1.phpt create mode 100755 ext/gd/tests/imagefilltoborder_error6.phpt create mode 100755 ext/gd/tests/imagefilter_error1.phpt create mode 100755 ext/gd/tests/imagefilter_error10.phpt create mode 100755 ext/gd/tests/imagefilter_error11.phpt create mode 100755 ext/gd/tests/imagefilter_error12.phpt create mode 100755 ext/gd/tests/imagefilter_error13.phpt create mode 100755 ext/gd/tests/imagefilter_error14.phpt create mode 100755 ext/gd/tests/imagefilter_error15.phpt create mode 100755 ext/gd/tests/imagefilter_error16.phpt create mode 100755 ext/gd/tests/imagefilter_error17.phpt create mode 100755 ext/gd/tests/imagefilter_error18.phpt create mode 100755 ext/gd/tests/imagefilter_error19.phpt create mode 100755 ext/gd/tests/imagefilter_error2.phpt create mode 100755 ext/gd/tests/imagefilter_error20.phpt create mode 100755 ext/gd/tests/imagefilter_error5.phpt create mode 100755 ext/gd/tests/imagefilter_error6.phpt create mode 100755 ext/gd/tests/imagefilter_error7.phpt create mode 100755 ext/gd/tests/imagefilter_error8.phpt create mode 100755 ext/gd/tests/imagefilter_error9.phpt create mode 100644 ext/gd/tests/imagefontheight_basic.phpt create mode 100644 ext/gd/tests/imagefontwidth_basic.phpt create mode 100644 ext/gd/tests/imagegammacorrect_basic.phpt create mode 100644 ext/gd/tests/imagegammacorrect_error1.phpt create mode 100644 ext/gd/tests/imagegammacorrect_error2.phpt create mode 100755 ext/gd/tests/imageinterlace_basic.phpt create mode 100755 ext/gd/tests/imageinterlace_error1.phpt create mode 100755 ext/gd/tests/imageinterlace_error2.phpt create mode 100755 ext/gd/tests/imageinterlace_variation1.phpt create mode 100755 ext/gd/tests/imageinterlace_variation2.phpt create mode 100644 ext/gd/tests/imagelayereffect_basic.phpt create mode 100644 ext/gd/tests/imagelayereffect_error1.phpt create mode 100644 ext/gd/tests/imagelayereffect_error3.phpt create mode 100755 ext/gd/tests/imagesetbrush_basic.phpt create mode 100644 ext/gd/tests/imagestring_basic.phpt create mode 100644 ext/gd/tests/imagestring_error1.phpt create mode 100644 ext/gd/tests/imagestring_error2.phpt create mode 100644 ext/gd/tests/imagestringup_basic.phpt create mode 100644 ext/gd/tests/imagestringup_error1.phpt create mode 100644 ext/gd/tests/imagestringup_error2.phpt create mode 100755 ext/gd/tests/jpeg2wbmp_error1.phpt create mode 100755 ext/gd/tests/jpeg2wbmp_error2.phpt create mode 100755 ext/gd/tests/jpeg2wbmp_error3.phpt create mode 100755 ext/gd/tests/png2wbmp_error1.phpt create mode 100755 ext/gd/tests/png2wbmp_error2.phpt create mode 100755 ext/gd/tests/png2wbmp_error3.phpt diff --git a/ext/gd/tests/imageantialias_error1.phpt b/ext/gd/tests/imageantialias_error1.phpt new file mode 100755 index 0000000000..53fe0cc66a --- /dev/null +++ b/ext/gd/tests/imageantialias_error1.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource in imageantialias() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageantialias(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imageantialias_error2.phpt b/ext/gd/tests/imageantialias_error2.phpt new file mode 100755 index 0000000000..8dad8bd115 --- /dev/null +++ b/ext/gd/tests/imageantialias_error2.phpt @@ -0,0 +1,23 @@ +--TEST-- +Testing wrong parameter passing in imageantialias() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(true) diff --git a/ext/gd/tests/imagearc_basic.phpt b/ext/gd/tests/imagearc_basic.phpt new file mode 100755 index 0000000000..4647dd1e3f --- /dev/null +++ b/ext/gd/tests/imagearc_basic.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing imagearc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +f18ad8001afefee2e9b8c08d6884425b diff --git a/ext/gd/tests/imagearc_error1.phpt b/ext/gd/tests/imagearc_error1.phpt new file mode 100755 index 0000000000..b2fd8d3837 --- /dev/null +++ b/ext/gd/tests/imagearc_error1.phpt @@ -0,0 +1,29 @@ +--TEST-- +Testing wrong param passing imagearc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imagearc() in %s on line %d +abebb25b5a2813cfbf92f1f24365786a diff --git a/ext/gd/tests/imagearc_variation1.phpt b/ext/gd/tests/imagearc_variation1.phpt new file mode 100755 index 0000000000..568d3a6d47 --- /dev/null +++ b/ext/gd/tests/imagearc_variation1.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing passing negative end angle to imagearc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +ed2c8427a9922dfd8a105f10a88a0d20 diff --git a/ext/gd/tests/imagearc_variation2.phpt b/ext/gd/tests/imagearc_variation2.phpt new file mode 100755 index 0000000000..045c68e61c --- /dev/null +++ b/ext/gd/tests/imagearc_variation2.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing passing negative start angle to imagearc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +463b4aea9d9acfab30016ee92613c779 diff --git a/ext/gd/tests/imagechar_basic.phpt b/ext/gd/tests/imagechar_basic.phpt new file mode 100644 index 0000000000..7e5fa931bc --- /dev/null +++ b/ext/gd/tests/imagechar_basic.phpt @@ -0,0 +1,25 @@ +--TEST-- +Testing imagechar() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +e94962ac28ad03bd4142cb1abe9ef98b diff --git a/ext/gd/tests/imagechar_error1.phpt b/ext/gd/tests/imagechar_error1.phpt new file mode 100644 index 0000000000..17971c5a3c --- /dev/null +++ b/ext/gd/tests/imagechar_error1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-resource parameter 1 of imagechar() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagechar(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagechar_error2.phpt b/ext/gd/tests/imagechar_error2.phpt new file mode 100644 index 0000000000..02a95994f6 --- /dev/null +++ b/ext/gd/tests/imagechar_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-image resource parameter 1 of imagechar() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagechar(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagecharup_basic.phpt b/ext/gd/tests/imagecharup_basic.phpt new file mode 100644 index 0000000000..54c8dfaa4a --- /dev/null +++ b/ext/gd/tests/imagecharup_basic.phpt @@ -0,0 +1,25 @@ +--TEST-- +Testing imagecharup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +79b48d5cef6d489bb68573df0296d775 diff --git a/ext/gd/tests/imagecharup_error1.phpt b/ext/gd/tests/imagecharup_error1.phpt new file mode 100644 index 0000000000..12f862031b --- /dev/null +++ b/ext/gd/tests/imagecharup_error1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-resource parameter 1 of imagecharup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecharup(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagecharup_error2.phpt b/ext/gd/tests/imagecharup_error2.phpt new file mode 100644 index 0000000000..b78dc9221e --- /dev/null +++ b/ext/gd/tests/imagecharup_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-image resource parameter 1 of imagecharup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecharup(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagecolordeallocate_basic.phpt b/ext/gd/tests/imagecolordeallocate_basic.phpt new file mode 100644 index 0000000000..3c80c690f8 --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_basic.phpt @@ -0,0 +1,21 @@ +--TEST-- +Testing imagecolordeallocate() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) diff --git a/ext/gd/tests/imagecolordeallocate_error1.phpt b/ext/gd/tests/imagecolordeallocate_error1.phpt new file mode 100644 index 0000000000..6d642d4a26 --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_error1.phpt @@ -0,0 +1,22 @@ +--TEST-- +Testing imagecolordeallocate() of GD library with invalid resource type +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolordeallocate(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagecolordeallocate_error2.phpt b/ext/gd/tests/imagecolordeallocate_error2.phpt new file mode 100644 index 0000000000..0f07cded80 --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_error2.phpt @@ -0,0 +1,19 @@ +--TEST-- +Testing imagecolordeallocate() of GD library with no resource +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolordeallocate(): supplied argument is not a valid Image resource %s on line %d diff --git a/ext/gd/tests/imagecolordeallocate_error3.phpt b/ext/gd/tests/imagecolordeallocate_error3.phpt new file mode 100644 index 0000000000..8000218ade --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_error3.phpt @@ -0,0 +1,22 @@ +--TEST-- +Testing imagecolordeallocate() of GD library with Out of range intergers (Above) +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolordeallocate(): Color index 101 out of range in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecolordeallocate_error4.phpt b/ext/gd/tests/imagecolordeallocate_error4.phpt new file mode 100644 index 0000000000..7aaeffebee --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_error4.phpt @@ -0,0 +1,22 @@ +--TEST-- +Testing imagecolordeallocate() of GD library with Out of range intergers (Below) +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolordeallocate(): Color index -1 out of range in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecolormatch_basic.phpt b/ext/gd/tests/imagecolormatch_basic.phpt new file mode 100755 index 0000000000..1d188121b6 --- /dev/null +++ b/ext/gd/tests/imagecolormatch_basic.phpt @@ -0,0 +1,19 @@ +--TEST-- +Basic test imagecolormatch() of GD library +--CREDITS-- +Paulo Alves de Sousa Filho +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(true) diff --git a/ext/gd/tests/imagecolormatch_error1.phpt b/ext/gd/tests/imagecolormatch_error1.phpt new file mode 100755 index 0000000000..4a572e3b05 --- /dev/null +++ b/ext/gd/tests/imagecolormatch_error1.phpt @@ -0,0 +1,18 @@ +--TEST-- +Send only 1 parameter imagecolormatch() of GD library +--CREDITS-- +Paulo Alves de Sousa Filho +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imagecolormatch() in %s on line %d +NULL diff --git a/ext/gd/tests/imagecolormatch_error2.phpt b/ext/gd/tests/imagecolormatch_error2.phpt new file mode 100755 index 0000000000..bdb3c2460e --- /dev/null +++ b/ext/gd/tests/imagecolormatch_error2.phpt @@ -0,0 +1,20 @@ +--TEST-- +Send not TrueColor to Image 1 parameter imagecolormatch() of GD library +--CREDITS-- +Paulo Alves de Sousa Filho +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolormatch(): Image1 must be TrueColor in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecolormatch_error3.phpt b/ext/gd/tests/imagecolormatch_error3.phpt new file mode 100755 index 0000000000..8793e15227 --- /dev/null +++ b/ext/gd/tests/imagecolormatch_error3.phpt @@ -0,0 +1,20 @@ +--TEST-- +Send not TrueColor to Image 1 parameter imagecolormatch() of GD library +--CREDITS-- +Paulo Alves de Sousa Filho +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolormatch(): Image2 must be Palette in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecolormatch_error4.phpt b/ext/gd/tests/imagecolormatch_error4.phpt new file mode 100755 index 0000000000..0bfe767c2b --- /dev/null +++ b/ext/gd/tests/imagecolormatch_error4.phpt @@ -0,0 +1,20 @@ +--TEST-- +using different image sizes imagecolormatch() of GD library +--CREDITS-- +Paulo Alves de Sousa Filho +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagecolormatch(): Image1 and Image2 must be the same size in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecolorset_basic.phpt b/ext/gd/tests/imagecolorset_basic.phpt new file mode 100755 index 0000000000..a1776ff50f --- /dev/null +++ b/ext/gd/tests/imagecolorset_basic.phpt @@ -0,0 +1,35 @@ +--TEST-- +Test imagecolorset() function : basic functionality +--CREDITS-- +Erick Belluci Tedeschi +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +6f2002aafb57b2d275fad6a6258d7476 diff --git a/ext/gd/tests/imageconvolution_basic.phpt b/ext/gd/tests/imageconvolution_basic.phpt new file mode 100755 index 0000000000..5a9aa8f95b --- /dev/null +++ b/ext/gd/tests/imageconvolution_basic.phpt @@ -0,0 +1,33 @@ +--TEST-- +Testing imageconvolution() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +594576a2a2a689447ffc07eb5a73f09b diff --git a/ext/gd/tests/imageconvolution_error1.phpt b/ext/gd/tests/imageconvolution_error1.phpt new file mode 100755 index 0000000000..5dc250a85b --- /dev/null +++ b/ext/gd/tests/imageconvolution_error1.phpt @@ -0,0 +1,27 @@ +--TEST-- +Testing wrong param passing imageconvolution() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageconvolution() expects exactly 4 parameters, 3 given in %s on line %d +bool(false) diff --git a/ext/gd/tests/imageconvolution_error2.phpt b/ext/gd/tests/imageconvolution_error2.phpt new file mode 100755 index 0000000000..5161c198c3 --- /dev/null +++ b/ext/gd/tests/imageconvolution_error2.phpt @@ -0,0 +1,26 @@ +--TEST-- +Testing wrong array size 2x3 in imageconvolution() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageconvolution(): You must have 3x3 array in %s on line %d +bool(false) diff --git a/ext/gd/tests/imageconvolution_error3.phpt b/ext/gd/tests/imageconvolution_error3.phpt new file mode 100755 index 0000000000..df6b148bd1 --- /dev/null +++ b/ext/gd/tests/imageconvolution_error3.phpt @@ -0,0 +1,27 @@ +--TEST-- +Testing wrong array size 3x2 in imageconvolution() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageconvolution(): You must have 3x3 array in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagecopymerge_basic.phpt b/ext/gd/tests/imagecopymerge_basic.phpt new file mode 100755 index 0000000000..85f1162629 --- /dev/null +++ b/ext/gd/tests/imagecopymerge_basic.phpt @@ -0,0 +1,30 @@ +--TEST-- +Testing imagecopymerge() of GD library +--CREDITS-- +Cleston Viel Vieira de Sousa +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(true) diff --git a/ext/gd/tests/imagecopymerge_error.phpt b/ext/gd/tests/imagecopymerge_error.phpt new file mode 100755 index 0000000000..362f597353 --- /dev/null +++ b/ext/gd/tests/imagecopymerge_error.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing wrong parameter passing imagecopymerge() of GD library +--CREDITS-- +Cleston Viel Vieira de Sousa +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imagecopymerge() in %s on line %d diff --git a/ext/gd/tests/imageellipse_basic.phpt b/ext/gd/tests/imageellipse_basic.phpt new file mode 100755 index 0000000000..bfd0b79f58 --- /dev/null +++ b/ext/gd/tests/imageellipse_basic.phpt @@ -0,0 +1,27 @@ +--TEST-- +Testing imageellipse() of GD library +--CREDITS-- +Ivan Rosolen +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +d8b9bc2ca224bd68569413f4617f8e1f diff --git a/ext/gd/tests/imageellipse_error1.phpt b/ext/gd/tests/imageellipse_error1.phpt new file mode 100755 index 0000000000..a5a584868f --- /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 +#testfest PHPSP on 2009-06-30 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageellipse(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imageellipse_error7.phpt b/ext/gd/tests/imageellipse_error7.phpt new file mode 100755 index 0000000000..23f1eeeab7 --- /dev/null +++ b/ext/gd/tests/imageellipse_error7.phpt @@ -0,0 +1,20 @@ +--TEST-- +Testing wrong param passing imageellipse() of GD library +--CREDITS-- +Ivan Rosolen +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageellipse(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagefilledarc_basic.phpt b/ext/gd/tests/imagefilledarc_basic.phpt new file mode 100755 index 0000000000..9ff9bd3716 --- /dev/null +++ b/ext/gd/tests/imagefilledarc_basic.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing imagefilledarc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +894f394c7f2e2364642ef27fea6bfc33 diff --git a/ext/gd/tests/imagefilledarc_error1.phpt b/ext/gd/tests/imagefilledarc_error1.phpt new file mode 100755 index 0000000000..5d6ca9577a --- /dev/null +++ b/ext/gd/tests/imagefilledarc_error1.phpt @@ -0,0 +1,29 @@ +--TEST-- +Testing wrong param passing imagefilledarc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imagefilledarc() in %s on line %d +abebb25b5a2813cfbf92f1f24365786a diff --git a/ext/gd/tests/imagefilledarc_variation1.phpt b/ext/gd/tests/imagefilledarc_variation1.phpt new file mode 100755 index 0000000000..2dec1ead2c --- /dev/null +++ b/ext/gd/tests/imagefilledarc_variation1.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing passing negative end angle to imagefilledarc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +b77bbb8207e5adbebfcc8bd1c4074305 diff --git a/ext/gd/tests/imagefilledarc_variation2.phpt b/ext/gd/tests/imagefilledarc_variation2.phpt new file mode 100755 index 0000000000..5c8ffba001 --- /dev/null +++ b/ext/gd/tests/imagefilledarc_variation2.phpt @@ -0,0 +1,28 @@ +--TEST-- +Testing passing negative start angle to imagefilledarc() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +b8b572812b3c85678f6c38c4ecca7619 diff --git a/ext/gd/tests/imagefilltoborder_basic.phpt b/ext/gd/tests/imagefilltoborder_basic.phpt new file mode 100755 index 0000000000..80b84d2c69 --- /dev/null +++ b/ext/gd/tests/imagefilltoborder_basic.phpt @@ -0,0 +1,33 @@ +--TEST-- +Testing imagefilltoborder() of GD library +--CREDITS-- +Ivan Rosolen +#testfest PHPSP on 2009-06-30 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +847ec236f1c4d14c465306c8408550fc diff --git a/ext/gd/tests/imagefilltoborder_error1.phpt b/ext/gd/tests/imagefilltoborder_error1.phpt new file mode 100755 index 0000000000..6bf0a9c7df --- /dev/null +++ b/ext/gd/tests/imagefilltoborder_error1.phpt @@ -0,0 +1,26 @@ +--TEST-- +Testing wrong param passing imagefilltoborder() of GD library +--CREDITS-- +Ivan Rosolen +#testfest PHPSP on 2009-06-30 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilltoborder(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagefilltoborder_error6.phpt b/ext/gd/tests/imagefilltoborder_error6.phpt new file mode 100755 index 0000000000..b5ce53b0d6 --- /dev/null +++ b/ext/gd/tests/imagefilltoborder_error6.phpt @@ -0,0 +1,29 @@ +--TEST-- +Testing wrong param passing imagefilltoborder() of GD library +--CREDITS-- +Ivan Rosolen +#testfest PHPSP on 2009-06-30 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilltoborder(): supplied resource is not a valid Image resource in %s on line %d + + diff --git a/ext/gd/tests/imagefilter_error1.phpt b/ext/gd/tests/imagefilter_error1.phpt new file mode 100755 index 0000000000..fb96ae32b4 --- /dev/null +++ b/ext/gd/tests/imagefilter_error1.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter passing in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imagefilter() in %s on line %d +NULL diff --git a/ext/gd/tests/imagefilter_error10.phpt b/ext/gd/tests/imagefilter_error10.phpt new file mode 100755 index 0000000000..8b41211629 --- /dev/null +++ b/ext/gd/tests/imagefilter_error10.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of EMBOSS in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error11.phpt b/ext/gd/tests/imagefilter_error11.phpt new file mode 100755 index 0000000000..9b1cf4d92b --- /dev/null +++ b/ext/gd/tests/imagefilter_error11.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource passing of EDGEDETECT in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error12.phpt b/ext/gd/tests/imagefilter_error12.phpt new file mode 100755 index 0000000000..33fee28e63 --- /dev/null +++ b/ext/gd/tests/imagefilter_error12.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of COLORIZE in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error13.phpt b/ext/gd/tests/imagefilter_error13.phpt new file mode 100755 index 0000000000..687d148be5 --- /dev/null +++ b/ext/gd/tests/imagefilter_error13.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing wrong parameter value of COLORIZE in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(true) diff --git a/ext/gd/tests/imagefilter_error14.phpt b/ext/gd/tests/imagefilter_error14.phpt new file mode 100755 index 0000000000..64103954db --- /dev/null +++ b/ext/gd/tests/imagefilter_error14.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter type of COLORIZE in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error15.phpt b/ext/gd/tests/imagefilter_error15.phpt new file mode 100755 index 0000000000..87a412e4cd --- /dev/null +++ b/ext/gd/tests/imagefilter_error15.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of CONTRAST in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error16.phpt b/ext/gd/tests/imagefilter_error16.phpt new file mode 100755 index 0000000000..2a84c2f789 --- /dev/null +++ b/ext/gd/tests/imagefilter_error16.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter type of CONTRAST in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error17.phpt b/ext/gd/tests/imagefilter_error17.phpt new file mode 100755 index 0000000000..adafc3e5e8 --- /dev/null +++ b/ext/gd/tests/imagefilter_error17.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of GRAYSCALE in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error18.phpt b/ext/gd/tests/imagefilter_error18.phpt new file mode 100755 index 0000000000..b636bfc07a --- /dev/null +++ b/ext/gd/tests/imagefilter_error18.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of NEGATE in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error19.phpt b/ext/gd/tests/imagefilter_error19.phpt new file mode 100755 index 0000000000..e36b817aa2 --- /dev/null +++ b/ext/gd/tests/imagefilter_error19.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter type of BRIGHTNESS in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error2.phpt b/ext/gd/tests/imagefilter_error2.phpt new file mode 100755 index 0000000000..62ac6620c6 --- /dev/null +++ b/ext/gd/tests/imagefilter_error2.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter passing in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter() expects parameter 2 to be long, %unicode_string_optional% given in %s on line %d +NULL diff --git a/ext/gd/tests/imagefilter_error20.phpt b/ext/gd/tests/imagefilter_error20.phpt new file mode 100755 index 0000000000..f3db724acb --- /dev/null +++ b/ext/gd/tests/imagefilter_error20.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of BRIGHTNESS in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error5.phpt b/ext/gd/tests/imagefilter_error5.phpt new file mode 100755 index 0000000000..a7d9443427 --- /dev/null +++ b/ext/gd/tests/imagefilter_error5.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter passing of SMOOTH in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter() expects parameter 3 to be double, %unicode_string_optional% given in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error6.phpt b/ext/gd/tests/imagefilter_error6.phpt new file mode 100755 index 0000000000..05dd187a2d --- /dev/null +++ b/ext/gd/tests/imagefilter_error6.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of SMOOTH in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error7.phpt b/ext/gd/tests/imagefilter_error7.phpt new file mode 100755 index 0000000000..6c08e5acf3 --- /dev/null +++ b/ext/gd/tests/imagefilter_error7.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of MEAN_REMOVAL in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error8.phpt b/ext/gd/tests/imagefilter_error8.phpt new file mode 100755 index 0000000000..57c3168f7e --- /dev/null +++ b/ext/gd/tests/imagefilter_error8.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of SELECTIVE_BLUR in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefilter_error9.phpt b/ext/gd/tests/imagefilter_error9.phpt new file mode 100755 index 0000000000..a74ea643cf --- /dev/null +++ b/ext/gd/tests/imagefilter_error9.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing wrong parameter resource of GAUSSIAN_BLUR in imagefilter() of GD library +--CREDITS-- +Guilherme Blanco +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imagefontheight_basic.phpt b/ext/gd/tests/imagefontheight_basic.phpt new file mode 100644 index 0000000000..bfcd0bb27c --- /dev/null +++ b/ext/gd/tests/imagefontheight_basic.phpt @@ -0,0 +1,19 @@ +--TEST-- +Testing imagefontheight() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(8) +int(13) +int(13) +int(16) +int(15) diff --git a/ext/gd/tests/imagefontwidth_basic.phpt b/ext/gd/tests/imagefontwidth_basic.phpt new file mode 100644 index 0000000000..0a9df52095 --- /dev/null +++ b/ext/gd/tests/imagefontwidth_basic.phpt @@ -0,0 +1,21 @@ +--TEST-- +Testing imagefontwidth() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(5) +int(6) +int(7) +int(8) +int(9) +bool(true) diff --git a/ext/gd/tests/imagegammacorrect_basic.phpt b/ext/gd/tests/imagegammacorrect_basic.phpt new file mode 100644 index 0000000000..b568728e71 --- /dev/null +++ b/ext/gd/tests/imagegammacorrect_basic.phpt @@ -0,0 +1,32 @@ +--TEST-- +Testing imagegammacorrect() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +30639772903913594bc665743e1b9ab8 diff --git a/ext/gd/tests/imagegammacorrect_error1.phpt b/ext/gd/tests/imagegammacorrect_error1.phpt new file mode 100644 index 0000000000..ad528afa29 --- /dev/null +++ b/ext/gd/tests/imagegammacorrect_error1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error with non-resource paramenter of imagegammacorrect() of GD library, +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagegammacorrect(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagegammacorrect_error2.phpt b/ext/gd/tests/imagegammacorrect_error2.phpt new file mode 100644 index 0000000000..604d7da796 --- /dev/null +++ b/ext/gd/tests/imagegammacorrect_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error with non-Image resource paramenter of imagegammacorrect() of GD library, +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagegammacorrect(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imageinterlace_basic.phpt b/ext/gd/tests/imageinterlace_basic.phpt new file mode 100755 index 0000000000..657b256d67 --- /dev/null +++ b/ext/gd/tests/imageinterlace_basic.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing imageinterlace() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(0) diff --git a/ext/gd/tests/imageinterlace_error1.phpt b/ext/gd/tests/imageinterlace_error1.phpt new file mode 100755 index 0000000000..90c7c2f1af --- /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 +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for imageinterlace() in %s on line %d +NULL diff --git a/ext/gd/tests/imageinterlace_error2.phpt b/ext/gd/tests/imageinterlace_error2.phpt new file mode 100755 index 0000000000..808c88a312 --- /dev/null +++ b/ext/gd/tests/imageinterlace_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing resource that is not a image to imageinterlace() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imageinterlace(): supplied resource is not a valid Image resource in %s on line %d +bool(false) diff --git a/ext/gd/tests/imageinterlace_variation1.phpt b/ext/gd/tests/imageinterlace_variation1.phpt new file mode 100755 index 0000000000..2c224ef41f --- /dev/null +++ b/ext/gd/tests/imageinterlace_variation1.phpt @@ -0,0 +1,20 @@ +--TEST-- +Testing setting the interlace bit on with imageinterlace() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(1) +int(1) diff --git a/ext/gd/tests/imageinterlace_variation2.phpt b/ext/gd/tests/imageinterlace_variation2.phpt new file mode 100755 index 0000000000..b4735dcfb9 --- /dev/null +++ b/ext/gd/tests/imageinterlace_variation2.phpt @@ -0,0 +1,24 @@ +--TEST-- +Testing setting the interlace bit off with imageinterlace() of GD library +--CREDITS-- +Edgar Ferreira da Silva +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(0) +int(0) diff --git a/ext/gd/tests/imagelayereffect_basic.phpt b/ext/gd/tests/imagelayereffect_basic.phpt new file mode 100644 index 0000000000..6dbc8600c6 --- /dev/null +++ b/ext/gd/tests/imagelayereffect_basic.phpt @@ -0,0 +1,27 @@ +--TEST-- +Testing imagelayereffect() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +5a8fe9864cbd20e5dbe730c77f30db95 diff --git a/ext/gd/tests/imagelayereffect_error1.phpt b/ext/gd/tests/imagelayereffect_error1.phpt new file mode 100644 index 0000000000..21b2db7265 --- /dev/null +++ b/ext/gd/tests/imagelayereffect_error1.phpt @@ -0,0 +1,16 @@ +--TEST-- +Testing imagelayereffect() with invalid resource of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagelayereffect(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagelayereffect_error3.phpt b/ext/gd/tests/imagelayereffect_error3.phpt new file mode 100644 index 0000000000..9f99186333 --- /dev/null +++ b/ext/gd/tests/imagelayereffect_error3.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing imagelayereffect() with invalid resource of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagelayereffect(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagesetbrush_basic.phpt b/ext/gd/tests/imagesetbrush_basic.phpt new file mode 100755 index 0000000000..790184ddc2 --- /dev/null +++ b/ext/gd/tests/imagesetbrush_basic.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test imagesetbrush() function : basic functionality +--CREDITS-- +Erick Belluci Tedeschi +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +8168577c0d1fe6d9d11397cb15263d82 diff --git a/ext/gd/tests/imagestring_basic.phpt b/ext/gd/tests/imagestring_basic.phpt new file mode 100644 index 0000000000..adc68a67fe --- /dev/null +++ b/ext/gd/tests/imagestring_basic.phpt @@ -0,0 +1,25 @@ +--TEST-- +Testing imagestring() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +d0d2fe757400cb7846b36a8c34b41e4a diff --git a/ext/gd/tests/imagestring_error1.phpt b/ext/gd/tests/imagestring_error1.phpt new file mode 100644 index 0000000000..9e012460c1 --- /dev/null +++ b/ext/gd/tests/imagestring_error1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-resource parameter 1 of imagestring() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagestring(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagestring_error2.phpt b/ext/gd/tests/imagestring_error2.phpt new file mode 100644 index 0000000000..d6146f7089 --- /dev/null +++ b/ext/gd/tests/imagestring_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-image resource parameter 1 of imagestring() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagestring(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagestringup_basic.phpt b/ext/gd/tests/imagestringup_basic.phpt new file mode 100644 index 0000000000..0c748b6aa9 --- /dev/null +++ b/ext/gd/tests/imagestringup_basic.phpt @@ -0,0 +1,25 @@ +--TEST-- +Testing imagestringup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECT-- +7c28016adcf620b772af2a8655b87bd2 diff --git a/ext/gd/tests/imagestringup_error1.phpt b/ext/gd/tests/imagestringup_error1.phpt new file mode 100644 index 0000000000..a75757692d --- /dev/null +++ b/ext/gd/tests/imagestringup_error1.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-resource parameter 1 of imagestringup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagestringup(): supplied argument is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/imagestringup_error2.phpt b/ext/gd/tests/imagestringup_error2.phpt new file mode 100644 index 0000000000..d1d5aa26ac --- /dev/null +++ b/ext/gd/tests/imagestringup_error2.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing error on non-image resource parameter 1 of imagestringup() of GD library +--CREDITS-- +Rafael Dohms +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: imagestringup(): supplied resource is not a valid Image resource in %s on line %d diff --git a/ext/gd/tests/jpeg2wbmp_error1.phpt b/ext/gd/tests/jpeg2wbmp_error1.phpt new file mode 100755 index 0000000000..b6514de8ba --- /dev/null +++ b/ext/gd/tests/jpeg2wbmp_error1.phpt @@ -0,0 +1,42 @@ +--TEST-- +Test jpeg2wbmp() function : wrong threshold value param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: jpeg2wbmp(): Invalid threshold value '9' in %s on line %d + +Warning: jpeg2wbmp(): Invalid threshold value '-1' in %s on line %d +--CLEAN-- + diff --git a/ext/gd/tests/jpeg2wbmp_error2.phpt b/ext/gd/tests/jpeg2wbmp_error2.phpt new file mode 100755 index 0000000000..692dcb842d --- /dev/null +++ b/ext/gd/tests/jpeg2wbmp_error2.phpt @@ -0,0 +1,31 @@ +--TEST-- +Test jpeg2wbmp() function : wrong origin filename param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d + +Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d + +Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d +--CLEAN-- + diff --git a/ext/gd/tests/jpeg2wbmp_error3.phpt b/ext/gd/tests/jpeg2wbmp_error3.phpt new file mode 100755 index 0000000000..df436c8cc3 --- /dev/null +++ b/ext/gd/tests/jpeg2wbmp_error3.phpt @@ -0,0 +1,43 @@ +--TEST-- +Test jpeg2wbmp() function : wrong destination filename param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d + +Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d + +Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d +--CLEAN-- + diff --git a/ext/gd/tests/png2wbmp_error1.phpt b/ext/gd/tests/png2wbmp_error1.phpt new file mode 100755 index 0000000000..1e9d717d94 --- /dev/null +++ b/ext/gd/tests/png2wbmp_error1.phpt @@ -0,0 +1,42 @@ +--TEST-- +Test png2wbmp() function : wrong threshold value param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: png2wbmp(): Invalid threshold value '9' in %s on line %d + +Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d +--CLEAN-- + diff --git a/ext/gd/tests/png2wbmp_error2.phpt b/ext/gd/tests/png2wbmp_error2.phpt new file mode 100755 index 0000000000..ba8e43e7f0 --- /dev/null +++ b/ext/gd/tests/png2wbmp_error2.phpt @@ -0,0 +1,31 @@ +--TEST-- +Test png2wbmp() function : wrong origin filename param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: png2wbmp(): Unable to open '' for reading in %s on line %d + +Warning: png2wbmp(): Unable to open '' for reading in %s on line %d + +Warning: png2wbmp(): Unable to open '' for reading in %s on line %d +--CLEAN-- + diff --git a/ext/gd/tests/png2wbmp_error3.phpt b/ext/gd/tests/png2wbmp_error3.phpt new file mode 100755 index 0000000000..1e33f59b18 --- /dev/null +++ b/ext/gd/tests/png2wbmp_error3.phpt @@ -0,0 +1,43 @@ +--TEST-- +Test png2wbmp() function : wrong destination filename param +--CREDITS-- +Levi Fukumori +#testfest PHPSP on 2009-06-20 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: png2wbmp(): Unable to open '' for writing in %s on line %d + +Warning: png2wbmp(): Unable to open '' for writing in %s on line %d + +Warning: png2wbmp(): Unable to open '' for writing in %s on line %d +--CLEAN-- + -- 2.40.0