diff options
Diffstat (limited to 'ext/gd/tests/imagecolordeallocate_basic.phpt')
-rw-r--r-- | ext/gd/tests/imagecolordeallocate_basic.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/gd/tests/imagecolordeallocate_basic.phpt b/ext/gd/tests/imagecolordeallocate_basic.phpt new file mode 100644 index 0000000..3c80c69 --- /dev/null +++ b/ext/gd/tests/imagecolordeallocate_basic.phpt @@ -0,0 +1,21 @@ +--TEST-- +Testing imagecolordeallocate() of GD library +--CREDITS-- +Rafael Dohms <rdohms [at] gmail [dot] com> +#testfest PHPSP on 2009-06-20 +--SKIPIF-- +<?php + if (!extension_loaded("gd")) die("skip GD not present"); +?> +--FILE-- +<?php +$image = imagecreatetruecolor(180, 30); + +$white = imagecolorallocate($image, 255, 255, 255); +$result = imagecolordeallocate($image, $white); + +var_dump($result); + +?> +--EXPECT-- +bool(true) |