xref: /PHP-8.1/ext/fileinfo/tests/bug-gh11891.phpt (revision 1f5bea34)
1--TEST--
2Bug GH-11891: fileinfo returns text/xml for some svg files
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7var_dump(
8    (new \finfo(\FILEINFO_MIME_TYPE))->file(
9        __DIR__ . '/bug-gh11891.svg',
10    ),
11);
12?>
13--EXPECT--
14string(13) "image/svg+xml"
15