1--TEST--
2Testing passing negative start angle to 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--EXTENSIONS--
7gd
8--SKIPIF--
9<?php
10if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) {
11    die("skip test requires GD 2.2.2 or higher");
12}
13?>
14--FILE--
15<?php
16
17$image = imagecreatetruecolor(100, 100);
18
19$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
20
21//create an arc and fill it with white color
22imagefilledarc($image, 50, 50, 30, 30, -25, 25, $white, IMG_ARC_PIE);
23
24include_once __DIR__ . '/func.inc';
25test_image_equals_file(__DIR__ . '/imagefilledarc_variation2.png', $image);
26?>
27--EXPECT--
28The images are equal.
29