xref: /PHP-8.2/ext/gd/tests/bug52070.phpt (revision a375d547)
1--TEST--
2Bug #52070 (imagedashedline() - dashed line sometimes is not visible)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$im = imagecreate(1200, 800);
8$background_color = imagecolorallocate($im, 40, 40, 40);
9$color = imagecolorallocate($im, 255, 255, 255);
10imagedashedline($im, 800, 400, 300, 400, $color);
11imagedashedline($im, 800, 400, 300, 800, $color);
12imagedashedline($im, 800, 400, 400, 800, $color);
13imagedashedline($im, 800, 400, 500, 800, $color);
14imagedashedline($im, 800, 400, 600, 800, $color);
15imagedashedline($im, 800, 400, 700, 800, $color);
16imagedashedline($im, 800, 400, 800, 800, $color);
17include_once __DIR__ . '/func.inc';
18test_image_equals_file(__DIR__ . '/bug52070.png', $im);
19?>
20--EXPECT--
21The images are equal.
22