public function pack($value)
{
}
function test($type, $variable, $test = null) { $msgpack = new MessagePack(); $serialized = $msgpack->pack($variable); $unserialized = $msgpack->unpack($serialized); var_dump($unserialized); if (!is_bool($test)) { echo $unserialized === $variable ? 'OK' : 'ERROR', PHP_EOL; } else { echo $test || $unserialized == $variable ? 'OK' : 'ERROR', PHP_EOL; } }