uawdijnntqw1x1x1
IP : 18.216.136.54
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
.
/
.
/
..
/
.
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
/
bson-dbpointer-001.phpt
/
/
--TEST-- MongoDB\BSON\DBPointer #001 --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = array( MongoDB\BSON\toPHP(MongoDB\BSON\fromJSON('{ "dbref": {"$dbPointer": {"$ref": "phongo.test", "$id" : { "$oid" : "5a2e78accd485d55b405ac12" } }} }')), ); foreach($tests as $n => $test) { echo "Test#{$n}", "\n"; $s = fromPHP($test); $testagain = toPHP($s); var_dump($test->dbref instanceof MongoDB\BSON\DBPointer); var_dump($testagain->dbref instanceof MongoDB\BSON\DBPointer); var_dump(toJSON(fromPHP($test)), toJSON(fromPHP($testagain))); var_dump((object)$test == (object)$testagain); } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Test#0 bool(true) bool(true) string(76) "{ "dbref" : { "$ref" : "phongo.test", "$id" : "5a2e78accd485d55b405ac12" } }" string(76) "{ "dbref" : { "$ref" : "phongo.test", "$id" : "5a2e78accd485d55b405ac12" } }" bool(true) ===DONE===
/home/../././.././opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests/bson-dbpointer-001.phpt