--TEST-- MongoDB\BSON\Binary serialization (__serialize and __unserialize) --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(6) "foobar" ["type"]=> int(0) } string(70) "O:19:"MongoDB\BSON\Binary":2:{s:4:"data";s:6:"foobar";s:4:"type";i:0;}" object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(6) "foobar" ["type"]=> int(0) } object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(0) "" ["type"]=> int(0) } string(64) "O:19:"MongoDB\BSON\Binary":2:{s:4:"data";s:0:"";s:4:"type";i:0;}" object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(0) "" ["type"]=> int(0) } object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(4) "%sfoo" ["type"]=> int(0) } string(68) "O:19:"MongoDB\BSON\Binary":2:{s:4:"data";s:4:"%sfoo";s:4:"type";i:0;}" object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(4) "%sfoo" ["type"]=> int(0) } object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(16) "%s" ["type"]=> int(4) } string(81) "O:19:"MongoDB\BSON\Binary":2:{s:4:"data";s:16:"%s";s:4:"type";i:4;}" object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(16) "%s" ["type"]=> int(4) } object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(16) "%s" ["type"]=> int(5) } string(81) "O:19:"MongoDB\BSON\Binary":2:{s:4:"data";s:16:"%s";s:4:"type";i:5;}" object(MongoDB\BSON\Binary)#%d (%d) { ["data"]=> string(16) "%s" ["type"]=> int(5) } ===DONE===