📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 06:03:33
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-document-has-001.phpt
Read Only
--TEST-- MongoDB\BSON\Document::has() checks if key exists --FILE-- <?php $document = MongoDB\BSON\Document::fromPHP(['foo' => 'bar', 'bar' => 'baz']); var_dump($document->has('foo')); var_dump($document->has('bar')); var_dump($document->has('baz')); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- bool(true) bool(true) bool(false) ===DONE===
💾 Save Changes
❌ Cancel