Derick Rethans
1caffe0fa8
PHPC-1053: UTCDateTime constructor should be marked as optional for Refelection
2017-12-01 15:26:42 +00:00
Jeremy Mikola
d7a943c62c
PHPC-1045: Regression test for SCRAM-SHA-1 auth segfault
2017-11-21 09:12:54 -05:00
Jeremy Mikola
aea558448a
PHPC-1046: Use authSource URI option to specify $external
2017-11-20 17:46:03 -05:00
Derick Rethans
20bbaf352a
Changed to ignore fields with unsupported types, and upgraded test cases.
2017-10-27 15:00:38 +01:00
Derick Rethans
1252a6ea03
PHPC-1026: Log warnings instead of throwing for unsupported BSON types
2017-10-27 15:00:38 +01:00
Jeremy Mikola
5cdfc4bc63
Merge branch 'v1.2'
2017-09-06 16:15:47 -04:00
Jeremy Mikola
b80ff1ed34
PHPC-1006: Fix test name and add extra regression test
2017-09-06 15:51:32 -04:00
Jeremy Mikola
013c9c4b7c
Merge pull request #646
2017-09-06 15:47:11 -04:00
Jeremy Mikola
4b6f3ecc9c
PHPC-1006: Do not modify Persistable::bsonSerialize() retval
2017-09-06 14:52:44 -04:00
Jeremy Mikola
3d4ac22ef1
PHPC-1005: Use convert_to_object() to create stdClass from array
...
This will ensure that the array symtable is properly converted to an object proptable in PHP 7.2 (e.g. integer key 0 converts to string key "0").
2017-09-06 14:37:59 -04:00
Jeremy Mikola
a8a639b941
PHPC-1006: Do not modify Persistable::bsonSerialize() retval
2017-09-06 14:34:27 -04:00
Jeremy Mikola
95c4678564
PHPC-1005: Use convert_to_object() to create stdClass from array
...
This will ensure that the array symtable is properly converted to an object proptable in PHP 7.2 (e.g. integer key 0 converts to string key "0").
2017-09-06 14:14:15 -04:00
Jeremy Mikola
94ee50e5ef
PHPC-1004: Rename ObjectID to ObjectId
2017-08-30 10:12:22 -04:00
Jeremy Mikola
aef71068a8
Revert "Use canonical ObjectID class name in tests"
...
This reverts commit 991cbe887e .
2017-08-30 10:02:17 -04:00
Jeremy Mikola
5d2a7741b7
Revert "PHPC-1004: Rename CursorId to CursorID"
...
This reverts commit 708c214034 .
2017-08-30 10:02:10 -04:00
Jeremy Mikola
991cbe887e
Use canonical ObjectID class name in tests
2017-08-29 09:47:50 -04:00
Jeremy Mikola
708c214034
PHPC-1004: Rename CursorId to CursorID
2017-08-29 09:47:50 -04:00
Jeremy Mikola
d616162e13
PHPC-1001: Report field name for invalid UTF-8 and unsupported zval types
2017-08-29 08:39:58 -04:00
Jeremy Mikola
a5fe81bd06
PHPC-640: Revert TypeWrapper interface
2017-08-28 17:54:55 -04:00
Jeremy Mikola
7158ed16e8
PHPC-976: Add more test cases for default read and write concerns
2017-08-17 12:11:41 -04:00
Jeremy Mikola
f581777126
PHPC-976: RC and WC isDefault() tests don't need a server
2017-08-17 12:11:41 -04:00
Jeremy Mikola
6175972e98
Ensure date.timezone is defined for UTCDateTimeInterface test
2017-08-14 12:28:13 -04:00
Jeremy Mikola
726fb9a071
PHPC-996: Remove support for PHP 5.4
2017-08-14 12:19:30 -04:00
Jeremy Mikola
58324ad627
PHPC-992: Rename extended JSON functions to[Canonical|Relaxed]ExtendedJSON()
2017-08-10 12:56:47 -04:00
Jeremy Mikola
7a9c02d929
toPHP() error test should not require servers
2017-08-10 12:21:29 -04:00
Jeremy Mikola
7434766d5a
Revise comments about bson_iter_init() testing
2017-08-10 12:21:01 -04:00
Jeremy Mikola
ce328f1a89
PHPC-887: Throw for unexpected types in URI options array
...
Note: generic boolean options (e.g. "ssl") will continue to accept non-boolean types for BC, since we cast via bson_iter_as_bool(). However, RP and WC-specific boolean options (e.g. "slaveOk", "journal") will throw since they previously silently ignored non-boolean values.
In addition to revising read preference tests, this adds new tests for read concern and write concern options.
2017-08-08 09:41:47 -04:00
Jeremy Mikola
7a79f14d67
Regression test for out of range maxStalenessSeconds option in URI string
2017-08-04 10:54:44 -04:00
Jeremy Mikola
3b171c795e
PHPC-846: Throw if maxStalenessSeconds URI option is out of range
2017-08-04 10:54:44 -04:00
Jeremy Mikola
36487bc0a9
PHPC-640: Create interfaces for BSON types classes
...
These interfaces are implemented by the corresponding BSON classes and intended to be used by TypeWrapper implementations.
2017-08-03 11:18:56 -04:00
Jeremy Mikola
ad3aeaf0d4
Test for iterating a Cursor with NoRewindIterator
2017-08-01 11:10:21 -04:00
Jeremy Mikola
4335eae4cc
PHPC-985: Timestamp::getIncrement() and getTimestamp() methods
2017-07-31 17:40:14 -04:00
Jeremy Mikola
98d3e02094
PHPC-941: Update BSON corpus tests for canonical and relaxed JSON
...
Generated from mongodb/specifications@f01908343f
Expected test failures are now defined in the generator script and have been updated for libbson changes.
2017-07-28 13:30:07 -04:00
Jeremy Mikola
0d30de6b3e
Make toJSON() tests consistent with toCanonicalJSON() and toRelaxedJSON()
2017-07-28 13:30:06 -04:00
Jeremy Mikola
65f5091010
PHPC-941: Add MongoDB\BSON\toCanonicalJSON() and toRelaxedJSON()
...
In CDRIVER-2208, bson_as_json() (used by toJSON()) was reverted to its original output format. Canonical and relaxed extended JSON are now produced by bson_as_canonical_json() and bson_as_relaxed_json(), respectively. This commit removes toExtendedJSON() (added in 980f1fb01a ) in favor of the new functions.
Implementations for the BSON functions have been moved to their own file, which is consistent with what we're doing for the APM subscriber functions.
2017-07-28 13:30:06 -04:00
Jeremy Mikola
331d387bb2
Revert "PHPC-977: Update tests for expected JSON output from libbson"
...
This reverts commit 2761072d24 .
2017-07-28 13:30:06 -04:00
Jeremy Mikola
c79f57c1de
PHPC-981: Move APM functions to MongoDB\Driver\Monitoring namespace
2017-07-26 14:02:10 -04:00
Jeremy Mikola
e089c2bd01
PHPC-950: Skip APM callbacks if subscriber HashTable is uninitialized
2017-07-25 15:32:31 -04:00
Jeremy Mikola
31aa04b746
PHPC-976: isDefault() method for read and write concerns
2017-07-11 16:56:19 -04:00
Jeremy Mikola
6c5bfafd9c
Expect failure in regex flag test pending CDRIVER-2128
2017-07-11 12:43:59 -04:00
Jeremy Mikola
0fd4ab4258
PHPC-977: Update BSON corpous tests
...
Generated from mongodb/specifications@7b5793561e
2017-07-11 11:39:44 -04:00
Jeremy Mikola
3668a0ab23
Don't use EXPECTF pattern to match BSON class names
2017-07-11 11:39:44 -04:00
Jeremy Mikola
26d8ff2bbe
Use EXPECT in tests that don't utilize pattern matching
2017-07-11 11:39:44 -04:00
Jeremy Mikola
2761072d24
PHPC-977: Update tests for expected JSON output from libbson
...
Extended JSON output for libbson changed in CDRIVER-2128.
2017-07-11 11:39:44 -04:00
Jeremy Mikola
a28a5eeecd
PHPC-977: Update tests for expected BulkWrite BSON validation errors
...
The error message was made more descriptive in CDRIVER-2016.
2017-07-11 11:39:44 -04:00
Jeremy Mikola
ad1f3f049f
PHPC-939: Don't modify std props in BSON get_properties handlers
2017-07-10 14:31:19 -04:00
Jeremy Mikola
bac8cb34aa
Merge branch 'v1.2'
2017-07-10 09:36:53 -04:00
Jeremy Mikola
c8657acbe0
PHPC-974: Regression test for array index gaps in JSON->BSON->PHP
...
Fixed in libbson 1.6.0 by CDRIVER-994.
2017-07-10 09:34:35 -04:00
Jeremy Mikola
adbc7eced9
PHPC-624: Support additional types in WriteResult::getUpsertedIds()
...
Previously, only ObjectIDs and integer types were supported.
2017-07-06 17:50:46 -04:00
Jeremy Mikola
e20653b574
Fix typo in test title
...
Type appears to have been introduced in 43b06f0ca3
2017-07-05 15:02:09 -04:00