1--TEST--
2Testing imagerectangle() of GD library
3--CREDITS--
4Ivan Rosolen <contato [at] ivanrosolen [dot] com>
5#testfest PHPSP on 2009-06-30
6--EXTENSIONS--
7gd
8--FILE--
9<?php
10// Create a image
11$image = imagecreatetruecolor( 100, 100 );
12
13// Draw a rectangle
14imagerectangle( $image, 0, 0, 50, 50, imagecolorallocate($image, 255, 255, 255) );
15
16include_once __DIR__ . '/func.inc';
17test_image_equals_file(__DIR__ . '/imagerectangle_basic.png', $image);
18?>
19--EXPECT--
20The images are equal.
21