1--TEST--
2Testing imagestringup() 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 = imagestringup($image, 1, 5, 25, 'Str', $white);
20
21include_once __DIR__ . '/func.inc';
22test_image_equals_file(__DIR__ . '/imagestringup_basic.png', $image);
23?>
24--EXPECT--
25The images are equal.
26