MWMessagePack: improvements to test suite, exception handling, array detection
authorOri Livneh <ori@wikimedia.org>
Fri, 3 Jan 2014 05:57:23 +0000 (21:57 -0800)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Fri, 3 Jan 2014 08:57:25 +0000 (03:57 -0500)
commita7a5c414bb1191b5eea0931c8f7718a0568cc621
tree550a7c4d6344070dccf8683f9a49046c857c6be4
parent681607e55b44860cf5dc985128daca8b7bda8ae0
MWMessagePack: improvements to test suite, exception handling, array detection

* Throw InvalidArgumentException
* Use data provider in unit tests
* Detect associative arrays without copying

Per Tyler's post-merge review of Id2833c5a9.

Change-Id: Iec6b135238ca5da3002944066843102f0ae8d23d
includes/libs/MWMessagePack.php
tests/phpunit/includes/libs/MWMessagePackTest.php