1--TEST-- 2Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC 3--EXTENSIONS-- 4zlib 5--SKIPIF-- 6<?php 7if (!defined("IMAGETYPE_SWC")) { 8 die("skip IMAGETYPE_SWC is not defined "); 9} 10?> 11--FILE-- 12<?php 13echo "*** Testing image_type_to_mime_type() : usage variations ***\n"; 14 15error_reporting(E_ALL ^ E_NOTICE); 16 17var_dump( image_type_to_mime_type(IMAGETYPE_ICO) ); 18var_dump( image_type_to_mime_type(IMAGETYPE_SWC) ); 19?> 20--EXPECT-- 21*** Testing image_type_to_mime_type() : usage variations *** 22string(24) "image/vnd.microsoft.icon" 23string(29) "application/x-shockwave-flash" 24