Annotation of embedaddon/php/ext/gd/tests/imagecreatetruecolor_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing imagecreatetruecolor() of GD library
3: --CREDITS--
4: Rafael Dohms <rdohms [at] gmail [dot] com>
5: --SKIPIF--
6: <?php
7: if (!extension_loaded("gd")) die("skip GD not present");
8: if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible");
9: ?>
10: --FILE--
11: <?php
12: $image = imagecreatetruecolor(180, 30);
13:
14: ob_start();
15: imagepng($image, null, 9);
16: $img = ob_get_contents();
17: ob_end_clean();
18:
19: echo md5(base64_encode($img));
20: ?>
21: --EXPECT--
22: 5a8fe9864cbd20e5dbe730c77f30db95
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>