wiki.techinc.nl/tests/phpunit/includes/libs
Ori Livneh 7c9e19ed5e mime: Document null return from MimeAnalyzer::improveTypeFromExtension()
This method returns null when $mime is 'unknown/unknown' and the file
extension is unknown to MediaWiki. The inline documentation and @return
annotation omitted this.

I don't think this was an intentional design choice, but it's the
existing behavior and I'm not sure it's safe to change.

Since it is the existing behavior, document it and add a test case, to
ensure that any changes to this behavior are intentional.

Bug: T253483
Change-Id: Ie6615a4bd9ae77e9ab59cfe76edb237cace693b1
2020-05-24 15:51:08 -04:00
..
filebackend/fsfile TempFSFileFactory service 2019-08-21 16:26:05 +03:00
Message Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
mime mime: Document null return from MimeAnalyzer::improveTypeFromExtension() 2020-05-24 15:51:08 -04:00
objectcache Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
ParamValidator UploadedFileStream: PHP 8 compatibility 2020-04-30 17:09:23 +00:00
rdbms Add rawTables(), getQueryInfo() and queryInfo() to SelectQueryBuilder 2020-05-18 14:42:42 +10:00
uuid Move UIDGenerator code to a service and put it under /libs 2020-02-18 00:20:40 +00:00
CSSMinTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
GenericArrayObjectTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00