imagearc_variation2.phpt 540 B

12345678910111213141516171819202122
  1. --TEST--
  2. Testing passing negative start angle to imagearc() of GD library
  3. --CREDITS--
  4. Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
  5. #testfest PHPSP on 2009-06-20
  6. --EXTENSIONS--
  7. gd
  8. --FILE--
  9. <?php
  10. $image = imagecreatetruecolor(100, 100);
  11. $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
  12. //create an arc with white color
  13. imagearc($image, 50, 50, 30, 30, -90, 0, $white);
  14. include_once __DIR__ . '/func.inc';
  15. test_image_equals_file(__DIR__ . '/imagearc_variation2.png', $image);
  16. ?>
  17. --EXPECT--
  18. The images are equal.