1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/gd/tests/colormatch.phpt
Nikita Popov 14a26db3e2 Update ext/gd parameter names
Closes GH-6308.
2020-10-09 17:10:11 +02:00

26 lines
448 B
PHP

--TEST--
imagecolormatch
--SKIPIF--
<?php
if (!function_exists('imagecolormatch')) die("skip gd extension not available\n");
?>
--FILE--
<?php
$im = imagecreatetruecolor(5,5);
$im2 = imagecreate(5,5);
try {
imagecolormatch($im, $im2);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
echo "ok\n";
imagedestroy($im);
?>
--EXPECT--
imagecolormatch(): Argument #2 ($image2) must have at least one color
ok