xref: /PHP-8.1/ext/gd/tests/imagearc_basic.phpt (revision a375d547)
1--TEST--
2Testing 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--FILE--
9<?php
10
11$image = imagecreatetruecolor(100, 100);
12
13$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
14
15//create an arc with white color
16imagearc($image, 50, 50, 30, 30, 0, 180, $white);
17
18include_once __DIR__ . '/func.inc';
19test_image_equals_file(__DIR__ . '/imagearc_basic.png', $image);
20?>
21--EXPECT--
22The images are equal.
23