Skip to content

Commit

Permalink
add test case for heif
Browse files Browse the repository at this point in the history
Signed-off-by: Benstone Zhang <[email protected]>
  • Loading branch information
benstonezhang committed Feb 21, 2024
1 parent e1f8f1e commit c486673
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/standard/basic_functions_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion ext/standard/tests/image/image_type_to_mime_type.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image_type_to_mime_type()
var_dump($result);
?>
--EXPECT--
array(17) {
array(18) {
["test-1pix.bmp"]=>
string(9) "image/bmp"
["test12pix.webp"]=>
Expand Down Expand Up @@ -59,4 +59,6 @@ array(17) {
string(29) "application/x-shockwave-flash"
["test4pix.tiff"]=>
string(10) "image/tiff"
["test4pix.heic"]=>
string(10) "image/heif"
}
2 changes: 2 additions & 0 deletions ext/standard/tests/image/image_type_to_mime_type_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $image_types = array (
IMAGETYPE_IFF,
IMAGETYPE_WBMP,
IMAGETYPE_JPEG2000,
IMAGETYPE_HEIF,
IMAGETYPE_XBM,
IMAGETYPE_WEBP
);
Expand Down Expand Up @@ -49,6 +50,7 @@ string(24) "application/octet-stream"
string(9) "image/iff"
string(18) "image/vnd.wap.wbmp"
string(24) "application/octet-stream"
string(10) "image/heif"
string(9) "image/xbm"
string(10) "image/webp"

Expand Down
Binary file added ext/standard/tests/image/test4pix.heic
Binary file not shown.

0 comments on commit c486673

Please sign in to comment.