xref: /PHP-7.2/ext/gd/tests/colormatch.phpt (revision 73ab1445)
1--TEST--
2imagecolormatch
3--SKIPIF--
4<?php
5        if (!function_exists('imagecolormatch')) die("skip gd extension not available\n");
6?>
7--FILE--
8<?php
9
10$im = imagecreatetruecolor(5,5);
11$im2 = imagecreate(5,5);
12
13imagecolormatch($im, $im2);
14
15echo "ok\n";
16
17imagedestroy($im);
18?>
19--EXPECTF--
20Warning: imagecolormatch(): Image2 must have at least one color in %s on line %d
21ok
22