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}
13if (!(imagetypes() & IMG_PNG)) {
14    die("skip No PNG support");
15}
16?>
17--FILE--
18<?php
19
20$image = imagecreatetruecolor(100, 100);
21
22$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
23
24//create an arc and fill it with white color
25imagefilledarc($image, 50, 50, 30, 30, -25, 25, $white, IMG_ARC_PIE);
26
27include_once __DIR__ . '/func.inc';
28test_image_equals_file(__DIR__ . '/imagefilledarc_variation2.png', $image);
29?>
30--EXPECT--
31The images are equal.
32