1--TEST--
2Testing passing negative start angle to imagearc() 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 (!(imagetypes() & IMG_PNG)) {
11    die("skip No PNG support");
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 with white color
22imagearc($image, 50, 50, 30, 30, -90, 0, $white);
23
24include_once __DIR__ . '/func.inc';
25test_image_equals_file(__DIR__ . '/imagearc_variation2.png', $image);
26?>
27--EXPECT--
28The images are equal.
29