MediaWiki
REL1_24
|
PHP Unit tests for MWMessagePack MWMessagePack. More...
Public Member Functions | |
testPack ($type, $value, $expected) | |
Verify that values are serialized correctly. | |
Static Public Member Functions | |
static | providePacks () |
Provides test cases for MWMessagePackTest::testMessagePack. |
PHP Unit tests for MWMessagePack MWMessagePack.
Definition at line 6 of file MWMessagePackTest.php.
static MWMessagePackTest::providePacks | ( | ) | [static] |
Provides test cases for MWMessagePackTest::testMessagePack.
Returns an array of test cases. Each case is an array of (type, value, expected encoding as hex string). The expected values were generated using <https://github.com/msgpack/msgpack-php>, which includes a serialization function.
Definition at line 16 of file MWMessagePackTest.php.
References array().
MWMessagePackTest::testPack | ( | $ | type, |
$ | value, | ||
$ | expected | ||
) |
Verify that values are serialized correctly.
MWMessagePack::pack providePacks
Definition at line 71 of file MWMessagePackTest.php.
References $type, $value, and MWMessagePack\pack().