Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
php-8.2
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/self/root/opt/php-8.2/share/test/mongodb/tests/bson/bson-decimal128-set_state-001.phpt
--TEST-- MongoDB\BSON\Decimal128::__set_state() --FILE-- <?php $tests = [ '1234.5678', '-1234.5678', 'Infinity', 'INF', 'NaN', 'NAN', ]; foreach ($tests as $value) { var_export(MongoDB\BSON\Decimal128::__set_state([ 'dec' => $value, ])); echo "\n\n"; } ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => '1234.5678', )) %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => '-1234.5678', )) %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => 'Infinity', )) %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => 'Infinity', )) %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => 'NaN', )) %r\\?%rMongoDB\BSON\Decimal128::__set_state(array( 'dec' => 'NaN', )) ===DONE===