1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/gd/tests/colormatch.phpt

22 lines
335 B
PHP

--TEST--
imagecolormatch
--EXTENSIONS--
gd
--FILE--
<?php
$im = imagecreatetruecolor(5,5);
$im2 = imagecreate(5,5);
try {
imagecolormatch($im, $im2);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
echo "ok\n";
?>
--EXPECT--
imagecolormatch(): Argument #2 ($image2) must have at least one color
ok