Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-7.0
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-7.0/share/test/mongodb/tests/bson/bson-decimal128_error-001.phpt
--TEST-- MongoDB\BSON\Decimal128 requires valid decimal string --SKIPIF-- <?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?> <?php if (defined("HHVM_VERSION_ID")) exit("skip HHVM handles parameter parsing differently"); ?> --FILE-- <?php require_once __DIR__ . '/../utils/tools.php'; echo throws(function() { new MongoDB\BSON\Decimal128([]); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException MongoDB\BSON\Decimal128::__construct() expects parameter 1 to be string, array given ===DONE===