imagestringup_basic.phpt 517 B

123456789101112131415161718192021
  1. --TEST--
  2. Testing imagestringup() of GD library
  3. --CREDITS--
  4. Rafael Dohms <rdohms [at] gmail [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. $image = imagecreatetruecolor(180, 30);
  13. $white = imagecolorallocate($image, 255,255,255);
  14. $result = imagestringup($image, 1, 5, 25, 'Str', $white);
  15. include_once __DIR__ . '/func.inc';
  16. test_image_equals_file(__DIR__ . '/imagestringup_basic.png', $image);
  17. ?>
  18. --EXPECT--
  19. The images are equal.