Viewing File: /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests/bson-int64-tostring-001.phpt

--TEST--
MongoDB\BSON\Int64::__toString()
--FILE--
<?php

$tests = [
    '9223372036854775807',
    '-9223372036854775808',
    0,
];

foreach ($tests as $test) {
    var_dump((string) new MongoDB\BSON\Int64($test));
}

?>
===DONE===
<?php exit(0); ?>
--EXPECT--
string(19) "9223372036854775807"
string(20) "-9223372036854775808"
string(1) "0"
===DONE===
Back to Directory File Manager
<