📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 07:30:49
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-mongodb_1.20.0-2.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests
🔄 Refresh
✏️
Editing: bson-packedarray-toRelaxedExtendedJSON-001.phpt
Read Only
--TEST-- MongoDB\BSON\PackedArray::toRelaxedExtendedJSON(): Encoding JSON --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = [ [], [ null ], [ true ], [ 'foo' ], [ 123 ], [ 1.0, ], [ NAN ], [ INF ], [ -INF ], [ [ 'foo', 'bar' ]], [ [ 'foo' => 'bar' ]], ]; foreach ($tests as $value) { echo MongoDB\BSON\PackedArray::fromPHP($value)->toRelaxedExtendedJSON(), "\n"; } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- [ ] [ null ] [ true ] [ "foo" ] [ 123 ] [ 1.0 ] [ { "$numberDouble" : "NaN" } ] [ { "$numberDouble" : "Infinity" } ] [ { "$numberDouble" : "-Infinity" } ] [ [ "foo", "bar" ] ] [ { "foo" : "bar" } ] ===DONE===
💾 Save Changes
❌ Cancel