1--TEST-- 2Testing imagecreatetruecolor() of GD library 3--CREDITS-- 4Rafael Dohms <rdohms [at] gmail [dot] com> 5--EXTENSIONS-- 6gd 7--SKIPIF-- 8<?php 9 if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible"); 10 if (!(imagetypes() & IMG_PNG)) { 11 die("skip No PNG support"); 12 } 13?> 14--FILE-- 15<?php 16$image = imagecreatetruecolor(180, 30); 17 18include_once __DIR__ . '/func.inc'; 19test_image_equals_file(__DIR__ . '/imagecreatetruecolor_basic.png', $image); 20?> 21--EXPECT-- 22The images are equal. 23