diff options
Diffstat (limited to 'ext/gd/tests/colormatch.phpt')
| -rw-r--r-- | ext/gd/tests/colormatch.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/gd/tests/colormatch.phpt b/ext/gd/tests/colormatch.phpt new file mode 100644 index 0000000..283a200 --- /dev/null +++ b/ext/gd/tests/colormatch.phpt @@ -0,0 +1,21 @@ +--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); + +imagecolormatch($im, $im2); + +echo "ok\n"; + +imagedestroy($im); +?> +--EXPECTF-- +Warning: imagecolormatch(): Image2 must have at least one color in %s on line %d +ok |
