xref: /php-src/ext/gd/tests/imagechar_basic.phpt (revision 0b8466f2)
1--TEST--
2Testing imagechar() of GD library
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5#testfest PHPSP on 2009-06-20
6--EXTENSIONS--
7gd
8--SKIPIF--
9<?php
10if (!(imagetypes() & IMG_PNG)) {
11    die("skip No PNG support");
12}
13?>
14--FILE--
15<?php
16$image = imagecreatetruecolor(180, 30);
17$white = imagecolorallocate($image, 255,255,255);
18
19$result = imagechar($image, 1, 5, 5, 'C', $white);
20
21include_once __DIR__ . '/func.inc';
22test_image_equals_file(__DIR__ . '/imagechar_basic.png', $image);
23?>
24--EXPECT--
25The images are equal.
26