]> granicus.if.org Git - php/commit
Make tests a little more resilient
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Aug 2016 15:59:33 +0000 (17:59 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 17 Aug 2016 15:59:33 +0000 (17:59 +0200)
commita3159d29bb24d5c946c14b7aa33e96bebcd56e59
tree771b0da28d52572069c9f964b371f1c33748beeb
parent48198e4c257825ab89ee027bff5a93fc2cd59601
Make tests a little more resilient

PNG allows identical images to be stored differently what makes nearly all
tests checking the MD5 hash of the PNG representation fail with external
libgd. For now, we use the GD format instead, which doesn't allow for such
differences.

Of course, this md5() checking should be replaced by a image diffing feature
in the long run.
30 files changed:
ext/gd/tests/bug22544.phpt
ext/gd/tests/bug43828.phpt
ext/gd/tests/bug72604.phpt
ext/gd/tests/imagearc_basic.phpt
ext/gd/tests/imagearc_error1.phpt
ext/gd/tests/imagearc_variation1.phpt
ext/gd/tests/imagearc_variation2.phpt
ext/gd/tests/imagechar_basic.phpt
ext/gd/tests/imagecharup_basic.phpt
ext/gd/tests/imagecolorallocatealpha_basic.phpt
ext/gd/tests/imagecolorset_basic.phpt
ext/gd/tests/imageconvolution_basic.phpt
ext/gd/tests/imagecreatetruecolor_basic.phpt
ext/gd/tests/imageellipse_basic.phpt
ext/gd/tests/imagefilledarc_basic.phpt
ext/gd/tests/imagefilledarc_error1.phpt
ext/gd/tests/imagefilledarc_variation1.phpt
ext/gd/tests/imagefilledarc_variation2.phpt
ext/gd/tests/imagefilledellipse_basic.phpt
ext/gd/tests/imagefilltoborder_basic.phpt
ext/gd/tests/imagegammacorrect_basic.phpt
ext/gd/tests/imagegammacorrect_variation1.phpt
ext/gd/tests/imagelayereffect_basic.phpt
ext/gd/tests/imagerectangle_basic.phpt
ext/gd/tests/imagesetbrush_basic.phpt
ext/gd/tests/imagesetthickness_basic.phpt
ext/gd/tests/imagestring_basic.phpt
ext/gd/tests/imagestringup_basic.phpt
ext/gd/tests/imagetruecolortopalette_basic.phpt
ext/gd/tests/libgd00100.phpt