📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 04:44:34
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-enum_error-004.phpt
Read Only
--TEST-- Backed enum cannot implement Persistable --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_php_version('<', '8.1.0'); ?> --FILE-- <?php enum MyBackedEnum: int implements MongoDB\BSON\Persistable { case A = 1; public function bsonSerialize(): array {} public function bsonUnserialize(array $data): void {} } ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- Fatal error: Enum class MyBackedEnum cannot implement interface MongoDB\BSON\Persistable in %s on line %d
💾 Save Changes
❌ Cancel