Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.3.6-202404181513
/
share
/
test
/
mongodb
/
tests
/
command
/
//opt/php-8.3.6-202404181513/share/test/mongodb/tests/command/command-ctor_error-001.phpt
--TEST-- MongoDB\Driver\Command::__construct() does not allow PackedArray --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; echo throws(function() { new MongoDB\Driver\Command(MongoDB\BSON\PackedArray::fromPHP([])); }, MongoDB\Driver\Exception\UnexpectedValueException::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\UnexpectedValueException MongoDB\BSON\PackedArray cannot be serialized as a root document ===DONE===