xref: /PHP-8.3/ext/gd/tests/colormatch.phpt (revision a375d547)
1--TEST--
2imagecolormatch
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7
8$im = imagecreatetruecolor(5,5);
9$im2 = imagecreate(5,5);
10
11try {
12    imagecolormatch($im, $im2);
13} catch (ValueError $exception) {
14    echo $exception->getMessage() . "\n";
15}
16
17echo "ok\n";
18
19imagedestroy($im);
20?>
21--EXPECT--
22imagecolormatch(): Argument #2 ($image2) must have at least one color
23ok
24