aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mimetype/guesser_test.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/14948] Adjust calls for twig and phpunit updatesMarc Alexander2019-05-091-2/+2
| | | | PHPBB3-14948
* [ticket/13031] Slightly change behavior of choose_mime_type and add unit testsMarc Alexander2014-09-051-0/+21
| | | | | | | | | The mime type 'application/octet-stream' will still always be overwritten by proper guesses. However, guesses with guessers that have a higher priority will now overwrite previous guesses even if the mime types of these guesses had a slash in them. PHPBB3-13031
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-3/+7
| | | | PHPBB3-12594
* [ticket/12071] Add test that covers not available fileinfomarc17062014-01-031-2/+22
| | | | | | | | The newly added test case will also emulate a non-existing fileinfo in order to check if the mimetype guesser is properly working when fileinfo is not available. PHPBB3-12071
* [ticket/12071] Get rid of unneeded cast to boolean in testsmarc17062014-01-031-1/+1
| | | | PHPBB3-12071
* [ticket/12071] Skip tests that depend on fileinfo and fix expected resultsmarc17062014-01-031-1/+20
| | | | | | | | | | Tests that depend on fileinfo being enabled will now be skipped to prevent fatal errors while running the test suite. The expected results will be modified to "application/octet-stream" in test_guess_files() if only the extension_guesser is available due to the non-existing extension of those files. PHPBB3-12071
* [ticket/11912] Expect logic exceptions in test if no guesser availableMarc Alexander2013-11-231-0/+13
| | | | PHPBB3-11912
* [ticket/11912] Use inverted $overload for setting function_exists in testsMarc Alexander2013-11-111-1/+1
| | | | PHPBB3-11912
* [ticket/11912] Introduce guesser priority to mimetype guessersMarc Alexander2013-11-111-0/+15
| | | | | | | | | | | | | | The mimetype guesser priority can now be set through the service definition. Mimetypes will be guessed from the guesser with the highest priority to the one with the lowest priority. Standard priority types have been added to the service definition file. Any integer value can be used though. Standard mimetype guessers that do not have the methods get_priority and set_priority implemented, like the standard MimeTypeGuessers of symfony, will have the default priority with the value of 0. Lower priority guessers have values lower than 0 while high priority ones can be added with values higher than 0. PHPBB3-11912
* [ticket/11912] Add extension_guesser for guessing mimetype by extensionMarc Alexander2013-11-111-3/+12
| | | | | | | | The content_guesser now only guesses the mimetype with the function mime_content_type() while the guessing by extension is done using the extension_guesser. PHPBB3-11912
* [ticket/11912] Supply filename to content_guesser for guessing on windowsMarc Alexander2013-10-241-1/+2
| | | | | | | | | The filename of the files sent to the guesser by plupload do not contain the file extension. Therefore, it's impossible to guess the mimetype if only the content_guesser is available and the function mime_content_type() doesn't exist. By supplying the filename we can circumvent this issue. PHPBB3-11912
* [ticket/11912] Add tests for content_guesserMarc Alexander2013-10-231-3/+48
| | | | PHPBB3-11912
* [ticket/11912] Add tests for phpbb mimetype guesserMarc Alexander2013-10-231-0/+83
PHPBB3-11912