summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagecolormatch_error1.phpt
blob: 9750a8b2452f59c10877cdb3277939872356e684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Send only 1 parameter imagecolormatch() of GD library
--CREDITS--
Paulo Alves de Sousa Filho <pspalves [at] gmail [dot] com>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php 
if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
$ima = imagecreatetruecolor(110, 20);
$background_color = imagecolorallocate($ima, 0, 0, 0);
var_dump(imagecolormatch($ima));
?>
--EXPECTF--
Warning: imagecolormatch() expects exactly 2 parameters, %d given in %s on line %d
NULL