xref: /PHP-8.2/ext/gd/tests/imagestring_basic.phpt (revision a375d547)
1--TEST--
2Testing imagestring() 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 = imagestring($image, 1, 5, 5, 'String Text', $white);
14
15include_once __DIR__ . '/func.inc';
16test_image_equals_file(__DIR__ . '/imagestring_basic.png', $image);
17?>
18--EXPECT--
19The images are equal.
20