📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-01 18:59:26
📂
/ (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: top-parseError-003.phpt
Read Only
--TEST-- Top-level document validity: Bad $regularExpression (pattern is number, not string) --DESCRIPTION-- Generated by scripts/convert-bson-corpus-tests.php DO NOT EDIT THIS FILE --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; throws(function() { MongoDB\BSON\Document::fromJSON('{"x" : {"$regularExpression" : { "pattern": 42, "options" : ""}}}'); }, 'MongoDB\Driver\Exception\UnexpectedValueException'); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\UnexpectedValueException ===DONE===
💾 Save Changes
❌ Cancel