--TEST-- Binary vector: PackedBit vector comparisons --DESCRIPTION-- Binary vector prose test #3 https://github.com/mongodb/specifications/blob/master/source/bson-binary-vector/tests/README.md#prose-tests --FILE-- toArray(); // PackedBit vector with padding:7 and all-zero bits (constructed from PHP array) $b3 = MongoDB\BSON\Binary::fromVector([1], MongoDB\BSON\VectorType::PackedBit); $v3 = $b3->toArray(); // Assert that both Binary and array representations are equal var_dump($b1 == $b3); var_dump($v1 === $v3); ?> ===DONE=== --EXPECT-- bool(true) bool(true) ===DONE===