Skip to content

Commit aed9a64

Browse files
committed
Add test for bug #78075, json detection
1 parent a387920 commit aed9a64

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

ext/fileinfo/tests/finfo_file_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ array(%d) {
2929
string(9) "image/gif"
3030
["%s/resources/test.jpg"]=>
3131
string(10) "image/jpeg"
32+
["%s/test.json"]=>
33+
string(16) "application/json"
3234
["%s/resources/test.mp3"]=>
3335
string(10) "audio/mpeg"
3436
["%s/resources/test.pdf"]=>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"abc": "edf",
3+
"json": "crab",
4+
"ololo": [
5+
1,
6+
2,
7+
3
8+
],
9+
"subcrab": {
10+
"name": "crab",
11+
"surname": "subcrab"
12+
}
13+
}

0 commit comments

Comments
 (0)