@@ -52,19 +52,25 @@ public function testAnalyze() {
52
52
'ms_word_snippet.doc ' => 'application/msword ' , // audio/MP4A-LATM
53
53
'xml_snippet.xml ' => 'application/xml ' , // text/xml
54
54
55
- /* Fail! */
56
- /*
57
- 'opendocument_writer_snippet.odt' => 'application/vnd.oasis.opendocument.text', // application/zip
58
- 'ms_word_snippet.docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // application/zip
55
+ // fails with detecting application/vnd.oasis.opendocument.graphics
56
+ // 'opendocument_writer_snippet.odt' => 'application/vnd.oasis.opendocument.text',
57
+ // fails with detecting application/zip
58
+ // 'ms_word_snippet.docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
59
59
'audio_mpeg_snippet.mp3 ' => 'audio/mpeg ' ,
60
- 'text_plain_snippet.txt' => 'text/plain',
61
- 'css_snippet.css' => 'text/css',
62
- 'javascript_snippet.js' => 'application/javascript',
63
- 'text_xhtml_snippet.xhtml' => 'application/xhtml+xml', // text/xml
64
- 'po_snippet.po' => 'text/x-gettext-translation',
65
- 'text_pot_snippet.pot' => 'text/x-gettext-translation-template',
66
- 'mo_snippet.mo' => 'application/x-gettext-translation',
67
- */
60
+ // fails with detecting video/x-ms-asf
61
+ // 'text_plain_snippet.txt' => 'text/plain',
62
+ // fails with detecting text/x-csrc
63
+ // 'css_snippet.css' => 'text/css',
64
+ // fails with detecting text/x-csrc
65
+ // 'javascript_snippet.js' => 'application/javascript',
66
+ // fails with detecting text/html
67
+ // 'text_xhtml_snippet.xhtml' => 'application/xhtml+xml',
68
+ // fails with detecting nothing
69
+ // 'po_snippet.po' => 'text/x-gettext-translation',
70
+ // fails with detecting nothing
71
+ // 'text_pot_snippet.pot' => 'text/x-gettext-translation-template',
72
+ // fails with detecting nothing
73
+ // 'mo_snippet.mo' => 'application/x-gettext-translation',
68
74
69
75
'video_flash_snippet.flv ' => 'video/x-flv ' ,
70
76
'audio_snippet.snd ' => 'audio/basic ' ,
@@ -75,18 +81,15 @@ public function testAnalyze() {
75
81
'video_quicktime_snippet.mov ' => 'video/quicktime ' ,
76
82
'video_ms_snippet.wmv ' => 'video/x-ms-asf ' ,
77
83
78
- /* Fail! */
79
- /*
80
- 'audio_snippet.aac' => 'audio/x-aac',
81
- 'audio_ms_snippet.wma' => 'audio/x-ms-asf',
82
- 'flac_snippet.flac' => 'audio/x-flac', // Fails only with freedesktop db
83
- */
84
+ // fails with detecting nothing
85
+ // 'audio_snippet.aac' => 'audio/x-aac',
86
+ // fails with detecting video/x-ms-asf
87
+ // 'audio_ms_snippet.wma' => 'audio/x-ms-asf',
88
+ 'flac_snippet.flac ' => 'audio/flac ' ,
84
89
85
- /* Fail! No data :( */
86
- /*
87
- 'java_snippet.class' => 'application/x-java',
88
- 'real_video_snippet.rm' => 'application/vnd.rn-realmedia'
89
- */
90
+ /* Fail! No data yet :( */
91
+ // 'java_snippet.class' => 'application/x-java',
92
+ // 'real_video_snippet.rm' => 'application/vnd.rn-realmedia'
90
93
];
91
94
92
95
foreach ($ files as $ file => $ mimeTypes ) {
0 commit comments