imageellipse_basic.phpt 509 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Testing imageellipse() of GD library
  3. --CREDITS--
  4. Ivan Rosolen <contato [at] ivanrosolen [dot] com>
  5. #testfest PHPSP on 2009-06-20
  6. --SKIPIF--
  7. <?php
  8. if (!extension_loaded("gd")) die("skip GD not present");
  9. ?>
  10. --FILE--
  11. <?php
  12. // Create a image
  13. $image = imagecreatetruecolor(400, 300);
  14. // Draw a white ellipse
  15. imageellipse($image, 200, 150, 300, 200, 16777215);
  16. include_once __DIR__ . '/func.inc';
  17. test_image_equals_file(__DIR__ . '/imageellipse_basic.png', $image);
  18. ?>
  19. --EXPECT--
  20. The images are equal.