summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagesetbrush_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/imagesetbrush_basic.phpt')
-rw-r--r--ext/gd/tests/imagesetbrush_basic.phpt10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/gd/tests/imagesetbrush_basic.phpt b/ext/gd/tests/imagesetbrush_basic.phpt
index 763a4c414d..e1a9c6a80c 100644
--- a/ext/gd/tests/imagesetbrush_basic.phpt
+++ b/ext/gd/tests/imagesetbrush_basic.phpt
@@ -26,12 +26,8 @@ imagesetbrush($mainimg, $img);
// Draw a couple of brushes, each overlaying each
imageline($mainimg, 50, 50, 50, 60, IMG_COLOR_BRUSHED);
-// Get output and generate md5 hash
-ob_start();
-imagegd($mainimg);
-$result_image = ob_get_contents();
-ob_end_clean();
-echo md5(base64_encode($result_image));
+include_once __DIR__ . '/func.inc';
+test_image_equals_file(__DIR__ . '/imagesetbrush_basic.png', $mainimg);
?>
--EXPECT--
-2bb294c388d826cc9bba6c6fd31f265a
+The images are equal.