aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/libs/MWMessagePackTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove MWMessagePackTheSandDoctor2019-12-301-76/+0
| | | | | | | MWMessagePack has been removed. Bug: T241220 Change-Id: I1e1823c3b42022d6b045b8d33bebb1be7da95631
* Remove covers validator trait where it is not neededThiemo Kreuz2019-05-171-2/+0
| | | | | | MediaWikiTestCase already contains this trait. Change-Id: I08224ac12a58b41121697ab71d5c54ddbdd060ec
* MWMessagePack: Deprecate MWMessagePack class and its methodDerick Alangi2019-05-091-1/+2
| | | | | | | | | | Usage ===== https://codesearch.wmflabs.org/search/?q=%5CbMWMessagePack%5Cb&i=nope&files=&repos= Bug: T220313 Change-Id: I3648f8c14116f924d835f68077f46333d892a038
* build: Updating mediawiki/mediawiki-codesniffer to 16.0.0Umherirrender2018-02-171-1/+1
| | | | Change-Id: I59b59f79bbf3ce4feff3b3a20c1c31bc16370531
* Use MediaWikiCoversValidator for tests that don't use MediaWikiTestCaseKunal Mehta2018-01-011-0/+2
| | | | Change-Id: I8c4de7e9c72c9969088666007b54c6fd23f6cc13
* Convert all array() syntax to []Kunal Mehta2016-02-171-35/+35
| | | | | | | | | | 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
* Convert most libs/ tests to use PHPUnit_Framework_TestCaseChad Horohoe2014-12-291-1/+1
| | | | | | They don't actually need any of the mess that MediaWikiTestCase provides Change-Id: Ibd067480fc294096d1249132cb800e09889efb18
* test: Clean up data providers that should be staticTimo Tijhof2014-09-181-2/+2
| | | | | | | | | | | | | | | | | | Follows-up b36d883. By far most data providers are static (and PHPUnit expects them to be static and calls them that way). Most of these classes already had their data providers static but additional commits sloppily introduced non-static ones. * ResourceLoaderWikiModuleTest, 8968d8787f. * TitleTest, 545f1d3a73. Odd unused method 'dataTestIsValidMoveOperation' was introduced in 550b878e63. * GlobalVarConfigTest, a3e18c3670. Change-Id: I5da99f7cd3da68c550ae507ffe1f725d31e7666f
* Skip 64 bit MWMessagePack tests on 32 bit machinesThiemo Mättig2014-07-091-6/+11
| | | | | | | | | | | | | It's not only Windows. I have an Ubuntu machine with a PHP setup limited to 32 bit (which is totally fine, it allows me to develop and always stay compatible to Windows and other 32 bit environments). I don't see an other way than to skip these tests on a 32 bit machine. The loss (PHP clips values larger than 2147483647 to 2147483647) does not happen in the code that is tested but in the test setup. Change-Id: Ie9a173c0a92ed84eaaea981a25ba130f2eca169e
* MWMessagePack: improvements to test suite, exception handling, array detectionOri Livneh2014-01-031-53/+51
| | | | | | | | | | * Throw InvalidArgumentException * Use data provider in unit tests * Detect associative arrays without copying Per Tyler's post-merge review of Id2833c5a9. Change-Id: Iec6b135238ca5da3002944066843102f0ae8d23d
* Add class implementing MessagePack serializationOri Livneh2014-01-021-0/+72
MessagePack is a space-efficient binary data interchange format. I am going to use it to encode profiling data in ProfilerSimpleUDP. The official PHP implementation is provided as a C extension, so using it would further encumber migration to HHVM. This patch adds MWMessagePack, a class implementing a pack() method for encoding native PHP values as MessagePack byte strings. The implementation is based on <https://github.com/onlinecity/msgpack-php>, but revised for clarity and conformity with MediaWiki coding conventions. Change-Id: Id2833c5a9da659cb13ec1330de9dd57138ada9c8