Annotation of embedaddon/php/ext/gd/tests/gd_info_variation1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test gd_info() function : variation - Checking all the values in returned array
! 3: --SKIPIF--
! 4: <?php
! 5: if(!extension_loaded('gd')) {
! 6: die('skip gd extension is not loaded');
! 7: }
! 8: if(!function_exists('gd_info')) {
! 9: die('skip gd_info function is not available');
! 10: }
! 11: ?>
! 12: --FILE--
! 13: <?php
! 14: /* Prototype : array gd_info()
! 15: * Description: Retrieve information about the currently installed GD library
! 16: * Source code: ext/gd/gd.c
! 17: */
! 18:
! 19: echo "*** Testing gd_info() : variation ***\n";
! 20:
! 21: var_dump(gd_info());
! 22: ?>
! 23: ===DONE===
! 24: --EXPECTF--
! 25: *** Testing gd_info() : variation ***
! 26: array(%d) {
! 27: ["GD Version"]=>
! 28: string(%d) %a
! 29: ["FreeType Support"]=>
! 30: bool%a
! 31: ["T1Lib Support"]=>
! 32: bool%a
! 33: ["GIF Read Support"]=>
! 34: bool%a
! 35: ["GIF Create Support"]=>
! 36: bool%a
! 37: ["JPEG Support"]=>
! 38: bool%a
! 39: ["PNG Support"]=>
! 40: bool%a
! 41: ["WBMP Support"]=>
! 42: bool%a
! 43: ["XPM Support"]=>
! 44: bool%a
! 45: ["XBM Support"]=>
! 46: bool%a
! 47: ["JIS-mapped Japanese Font Support"]=>
! 48: bool%a
! 49: }
! 50: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>