xref: /PHP-8.3/ext/gd/tests/imagechar_basic.phpt (revision a375d547)
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--FILE--
9<?php
10$image = imagecreatetruecolor(180, 30);
11$white = imagecolorallocate($image, 255,255,255);
12
13$result = imagechar($image, 1, 5, 5, 'C', $white);
14
15include_once __DIR__ . '/func.inc';
16test_image_equals_file(__DIR__ . '/imagechar_basic.png', $image);
17?>
18--EXPECT--
19The images are equal.
20