PATH:
opt
/
alt
/
tests
/
alt-php83-pecl-mongodb_1.18.1-1.el8
/
tests
--TEST-- Decimal128: [basx405] Engineering notation tests --DESCRIPTION-- Generated by scripts/convert-bson-corpus-tests.php DO NOT EDIT THIS FILE --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $canonicalBson = hex2bin('1800000013640007000000000000000000000000002C3000'); $canonicalExtJson = '{"d" : {"$numberDecimal" : "7E-10"}}'; // Canonical BSON -> Native -> Canonical BSON echo bin2hex(fromPHP(toPHP($canonicalBson))), "\n"; // Canonical BSON -> BSON object -> Canonical BSON echo bin2hex((string) MongoDB\BSON\Document::fromBSON($canonicalBson)), "\n"; // Canonical BSON -> Canonical extJSON echo json_canonicalize(toCanonicalExtendedJSON($canonicalBson)), "\n"; // Canonical BSON -> BSON object -> Canonical extJSON echo json_canonicalize(MongoDB\BSON\Document::fromBSON($canonicalBson)->toCanonicalExtendedJSON()), "\n"; // Canonical extJSON -> Canonical BSON echo bin2hex(fromJSON($canonicalExtJson)), "\n"; // Canonical extJSON -> BSON object -> Canonical BSON echo bin2hex((string) MongoDB\BSON\Document::fromJSON($canonicalExtJson)), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- 1800000013640007000000000000000000000000002c3000 1800000013640007000000000000000000000000002c3000 {"d":{"$numberDecimal":"7E-10"}} {"d":{"$numberDecimal":"7E-10"}} 1800000013640007000000000000000000000000002c3000 1800000013640007000000000000000000000000002c3000 ===DONE===
[+]
..
[-] bson-timestamp_error-005.phpt
[edit]
[-] bson-fromPHP_error-009.phpt
[edit]
[-] decimal128-3-valid-017.phpt
[edit]
[-] manager-executeCommand-003.phpt
[edit]
[-] bson-dbpointer-serialization_error-002.phpt
[edit]
[-] bson-int64-ctor-002.phpt
[edit]
[-] readpreference-ctor-002.phpt
[edit]
[-] clientEncryption-getKeys-001.phpt
[edit]
[-] clientEncryption-rewrapManyDataKey_error-002.phpt
[edit]
[-] decimal128-6-parseError-018.phpt
[edit]
[-] decimal128-3-valid-221.phpt
[edit]
[-] decimal128-6-parseError-031.phpt
[edit]
[-] writeconcernerror-001.phpt
[edit]
[-] readpreference-ctor_error-003.phpt
[edit]
[-] code-decodeError-002.phpt
[edit]
[-] code_w_scope-decodeError-002.phpt
[edit]
[-] bson-regex-jsonserialize-002.phpt
[edit]
[-] decimal128-2-valid-077.phpt
[edit]
[-] cursor-iterator-004.phpt
[edit]
[-] decimal128-3-valid-123.phpt
[edit]
[-] top-parseError-017.phpt
[edit]
[-] bson-int64-operation-003.phpt
[edit]
[-] decimal128-3-valid-003.phpt
[edit]
[-] clientEncryption-removeKeyAltName-001.phpt
[edit]
[-] serverApi-construct-001.phpt
[edit]
[-] decimal128-2-valid-080.phpt
[edit]
[-] decimal128-4-parseError-014.phpt
[edit]
[-] decimal128-7-parseError-031.phpt
[edit]
[-] topologyDescription-hasReadableServer_error-001.phpt
[edit]
[-] bson-document-toPHP-008.phpt
[edit]
[-] bug0950-002.phpt
[edit]
[-] bson-decimal128-serialization_error-003.phpt
[edit]
[-] bson-utcdatetime_error-002.phpt
[edit]
[-] decimal128-5-valid-043.phpt
[edit]
[-] decimal128-7-parseError-046.phpt
[edit]
[-] decimal128-1-valid-041.phpt
[edit]
[-] bulkwrite-delete_error-002.phpt
[edit]
[-] cursor-session-004.phpt
[edit]
[-] decimal128-7-parseError-010.phpt
[edit]
[-] top-parseError-030.phpt
[edit]
[-] decimal128-3-valid-087.phpt
[edit]
[-] server-executeBulkWrite-004.phpt
[edit]
[-] decimal128-7-parseError-059.phpt
[edit]
[-] decimal128-7-parseError-007.phpt
[edit]