1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/gd/tests/bug42434.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

27 lines
453 B
PHP

--TEST--
Bug #42434 (ImageLine w/ antialias = 1px shorter)
--SKIPIF--
<?php
if (!extension_loaded('gd')) {
die('skip gd extension not available');
}
?>
--FILE--
<?php
$im = imagecreatetruecolor(10, 2);
imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF);
imageantialias($im, true);
imageline($im, 0, 0, 10, 0, 0x000000);
if (imagecolorat($im, 9, 0) == 0x000000) {
echo 'DONE';
} else {
echo 'Bugged';
}
imagedestroy($im);
?>
--EXPECT--
DONE