MediaWiki  REL1_23
MWMessagePackTest Class Reference

PHP Unit tests for MWMessagePack MWMessagePack. More...

Inheritance diagram for MWMessagePackTest:
Collaboration diagram for MWMessagePackTest:

List of all members.

Public Member Functions

 provider ()
 Provides test cases for MWMessagePackTest::testMessagePack.
 testPack ($type, $value, $expected)
 Verify that values are serialized correctly.

Detailed Description

PHP Unit tests for MWMessagePack MWMessagePack.

Definition at line 6 of file MWMessagePackTest.php.


Member Function Documentation

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 provider

Definition at line 66 of file MWMessagePackTest.php.

References $value, and MWMessagePack\pack().


The documentation for this class was generated from the following file: