diff --git a/ext/gd/tests/imagebmp_basic.phpt b/ext/gd/tests/imagebmp_basic.phpt index a1eb244ef4e27..b3d1212d014cd 100644 --- a/ext/gd/tests/imagebmp_basic.phpt +++ b/ext/gd/tests/imagebmp_basic.phpt @@ -14,10 +14,8 @@ imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imageline($im, 10,10, 89,89, $white); -// write the md5 hash of its BMP representation -ob_start(); -imagebmp($im); -echo md5(ob_get_clean()); +require __DIR__ . "/func.inc"; +test_image_equals_file(__DIR__ . "/imagebmp_basic.png", $im); ?> --EXPECT-- -d49124076771822b09fa72e168c0de56 +The images are equal. diff --git a/ext/gd/tests/imagebmp_basic.png b/ext/gd/tests/imagebmp_basic.png new file mode 100644 index 0000000000000..26fc7d0afcf9f Binary files /dev/null and b/ext/gd/tests/imagebmp_basic.png differ