Viewing File: /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests/bson-int64-operation-003.phpt
--TEST--
MongoDB\BSON\Int64 operations: increment/decrement
--FILE--
<?php
$value = new MongoDB\BSON\Int64(10);
var_dump($value++);
var_dump($value);
var_dump(++$value);
var_dump($value);
var_dump($value--);
var_dump($value);
var_dump(--$value);
var_dump($value);
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "10"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "11"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "12"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "12"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "12"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "11"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "10"
}
object(MongoDB\BSON\Int64)#%d (%d) {
["integer"]=>
string(2) "10"
}
===DONE===
Back to Directory
File Manager
<