diff options
author | Zoe Slattery <zoe@php.net> | 2008-06-13 15:57:42 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2008-06-13 15:57:42 +0000 |
commit | af55856d6ee071420bcdfcf9117792b1ff3b9c5b (patch) | |
tree | b11b29d5ea2657338d5af86d291cb4c5b4d7bc69 | |
parent | f88ab53c3d577d284acdf60fa5f110f11b7762d3 (diff) | |
download | php-git-af55856d6ee071420bcdfcf9117792b1ff3b9c5b.tar.gz |
Commited for Sanjay, reviewed by Pierre. Testfest task 5.
-rw-r--r-- | ext/gd/tests/gd_info_variation1.phpt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ext/gd/tests/gd_info_variation1.phpt b/ext/gd/tests/gd_info_variation1.phpt new file mode 100644 index 0000000000..1700a2da88 --- /dev/null +++ b/ext/gd/tests/gd_info_variation1.phpt @@ -0,0 +1,50 @@ +--TEST-- +Test gd_info() function : variation - Checking all the values in returned array +--SKIPIF-- +<?php +if(!extension_loaded('gd')) { + die('skip gd extension is not loaded'); +} +if(!function_exists('gd_info')) { + die('skip gd_info function is not available'); +} +?> +--FILE-- +<?php +/* Prototype : array gd_info() + * Description: Retrieve information about the currently installed GD library + * Source code: ext/gd/gd.c + */ + +echo "*** Testing gd_info() : variation ***\n"; + +var_dump(gd_info()); +?> +===DONE=== +--EXPECTF-- +*** Testing gd_info() : variation *** +array(%d) { + ["GD Version"]=> + string(%d) %a + ["FreeType Support"]=> + bool%a + ["T1Lib Support"]=> + bool%a + ["GIF Read Support"]=> + bool%a + ["GIF Create Support"]=> + bool%a + ["JPG Support"]=> + bool%a + ["PNG Support"]=> + bool%a + ["WBMP Support"]=> + bool%a + ["XPM Support"]=> + bool%a + ["XBM Support"]=> + bool%a + ["JIS-mapped Japanese Font Support"]=> + bool%a +} +===DONE===
\ No newline at end of file |