Annotation of embedaddon/php/ext/standard/tests/image/image_type_to_mime_type_variation4.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC
3: --SKIPIF--
4: <?php
5: if (!defined("IMAGETYPE_SWC") || !defined("IMAGETYPE_ICO") || !extension_loaded('zlib')) {
6: die("skip zlib extension is not available or IMAGETYPE_SWC/IMAGETYPE_ICO is not defined ");
7: }
8: ?>
9: --FILE--
10: <?php
11: /* Prototype : string image_type_to_mime_type(int imagetype)
12: * Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
13: * Source code: ext/standard/image.c
14: */
15:
16:
17: echo "*** Testing image_type_to_mime_type() : usage variations ***\n";
18:
19: error_reporting(E_ALL ^ E_NOTICE);
20:
21: var_dump( image_type_to_mime_type(IMAGETYPE_ICO) );
22: var_dump( image_type_to_mime_type(IMAGETYPE_SWC) );
23: ?>
24: ===DONE===
25: --EXPECT--
26: *** Testing image_type_to_mime_type() : usage variations ***
27: string(24) "image/vnd.microsoft.icon"
28: string(29) "application/x-shockwave-flash"
29: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>