aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/CollationTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Add collation for Bashkir (ba)Brian Wolff2017-05-101-117/+0
| | | | | | | | This is based on a numeric uppercase collation. Bashkir characters will be remapped to the private use area for the purpose of sorting. Bug: T162823 Change-Id: I65f1af0b57ff6ded7d464e39efd401f178a3519e
* Convert all array() syntax to []Kunal Mehta2016-02-171-36/+36
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Fixed some @params documentation (tests)umherirrender2014-04-171-6/+6
| | | | | | | | | Swapped some "$var type" to "type $var" or added missing types before the $var. Changed some other types to match the more common spelling. Makes beginning of some text in captial. Also added some missing @param. Change-Id: Ic8aaf0a93796b97d0fa4617c1f86ff59f4b36131
* Replace a bunch of extension_loaded() checks with checkPHPExtension()Platonides2014-01-231-3/+1
| | | | Change-Id: I7bd9bc3a753975f45e63532d4f07aeff853b9970
* @covers tags for inclues/*Testaddshore2013-10-241-2/+10
| | | | Change-Id: Id28acdd8fe0028bf1e46344cfed131076c8f4c95
* Fix scope on all /phpunit test methodsaddshore2013-10-241-3/+3
| | | | Change-Id: I3ce92463d485a0fb23e464e9a8059330f32d79af
* Remove wfDl() and cleanup everything it touchedChad Horohoe2013-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | wfDl() is a wrapper around dl(), which is an evil function and basically only works from the command line of Zend. Luckily no extension has ever used this thing, so let's just remove it outright. For comparison, here's a list of places it does not work: - hhvm - php as apache module - php compiled with zts support - safe_mode - Basically any shared host that cares about security Most callers are using it to check for extension support and are actually failing gracefully when wfDl() returns false. In these places we're just going to use extension_loaded(). While we're at it, clean up some of the test skip logic in the media tests so we can bail as early as possible if we know we can't complete the test. This also immediately removes $wgLoadFileinfoExtension. It's been enabled by default since 5.3 and falls back gracefully when the support isn't available. Change-Id: Ieb430dfc74483731dde51d6e20fa700d641ba1f4
* Actually try to load intl for test which requires it.Platonides2013-05-111-1/+1
| | | | Change-Id: I7fc83714c66a1535641db6643c8344600db2f301
* Update code formattingSiebrand Mazeland2013-04-261-0/+2
| | | | Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
* Remove first letters that have an overlapping prefix.Brian Wolff2013-04-081-0/+109
First letters are supposed to be primary collation elements. However, we do not want expansions to be considered as firstletters (aka thorn "þ" -> "th" which isn't the same as any other first letter (since "t" !== "th" ) however if þ was a first letter, the word "the" and even worse the word "too" would be sorted under it, which is wrong. Looking for feedback if this all sounds sane. I have tested it, it got rid of the contractions while at the same time not removing any letter it wasn't supposed to. Once this is merged, we could get rid of all the -<langcode> entries. The other firstLetter array entries for tailorings could be merged into generateCollationData.php too, since incorrect things would get pruned automatically, which would probably make the logic in Collation.php simpler. Bug: 43740 Change-Id: I4bd3d39ec2938a53e2c6728adc48ee6cf9778d74