1--TEST--
2Test imagecolorallocate() function : basic functionality
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if(!function_exists('imagecreatetruecolor')) {
8    die('skip imagecreatetruecolor function is not available');
9}
10?>
11--FILE--
12<?php
13echo "*** Testing imagecolorallocate() : basic functionality ***\n";
14
15$im = imagecreatetruecolor(200, 200);
16// Calling imagecolorallocate() with all possible arguments
17var_dump( imagecolorallocate($im, 255, 0, 0) );
18var_dump( imagecolorallocate($im, 0, 255, 0) );
19var_dump( imagecolorallocate($im, 0, 0, 255) );
20var_dump( imagecolorallocate($im, 255, 255, 255) );
21?>
22--EXPECT--
23*** Testing imagecolorallocate() : basic functionality ***
24int(16711680)
25int(65280)
26int(255)
27int(16777215)
28