1--TEST--
2Testing imagefilledarc() of GD library
3--CREDITS--
4Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
5#testfest PHPSP on 2009-06-20
6--SKIPIF--
7<?php
8if (!extension_loaded("gd")) die("skip GD not present");
9if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) {
10	die("skip test requires GD 2.2.2 or higher");
11}
12?>
13--FILE--
14<?php
15
16$image = imagecreatetruecolor(100, 100);
17
18$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
19
20//create an arc and fill it with white color
21imagefilledarc($image, 50, 50, 30, 30, 0, 90, $white, IMG_ARC_PIE);
22
23include_once __DIR__ . '/func.inc';
24test_image_equals_file(__DIR__ . '/imagefilledarc_basic.png', $image);
25?>
26--EXPECT--
27The images are equal.
28