File manager - Edit - /opt/cpanel/ea-php74/root/usr/share/tests/pecl/mongodb/tests/bson/bson-undefined-compare-001.phpt
Back
--TEST-- MongoDB\BSON\Undefined comparisons --FILE-- <?php var_dump(MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP() == MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP()); var_dump(MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP() < MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP()); var_dump(MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP() > MongoDB\BSON\Document::fromJSON('{ "undefined": {"$undefined": true} }')->toPHP()); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- bool(true) bool(false) bool(false) ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings