--TEST-- MongoDB\Driver\ReadPreference::__construct() prohibits PackedArray for hedge document --FILE-- MongoDB\BSON\PackedArray::fromPHP([])] ); }, MongoDB\Driver\Exception\UnexpectedValueException::class), "\n"; ?> ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\UnexpectedValueException MongoDB\BSON\PackedArray cannot be serialized as a root document ===DONE===