xref: /PHP-7.2/ext/gd/tests/imagearc_error1.phpt (revision 17ccbeec)
1--TEST--
2Testing wrong param passing 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--SKIPIF--
7<?php
8if (!extension_loaded("gd")) die("skip GD not present");
9?>
10--FILE--
11<?php
12
13$image = imagecreatetruecolor(100, 100);
14
15$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
16
17//create an arc with white color
18imagearc($image, 50, 50, 30, 30, 0, 180);
19
20include_once __DIR__ . '/func.inc';
21test_image_equals_file(__DIR__ . '/imagearc_error1.png', $image);
22?>
23--EXPECTF--
24Warning: imagearc() expects exactly 8 parameters, 7 given in %s on line %d
25The images are equal.
26