Jeremy Mikola
fd3c371412
PHPC-1098: Use exactly representable floats in tests
2018-01-19 15:34:28 -05:00
Derick Rethans
f7cccabd77
PHPC-995: Drop support for MongoDB 2.4
2017-11-21 14:47:12 +00:00
Jeremy Mikola
94ee50e5ef
PHPC-1004: Rename ObjectID to ObjectId
2017-08-30 10:12:22 -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
e6b8479506
Reorganize SKIPIF blocks in tests and add missing NEEDS() checks
2017-03-15 10:41:04 -04:00
Jeremy Mikola
2599607b47
PHPC-635: WriteResult debug handler should return objects
2016-12-19 09:40:29 -05:00
Jeremy Mikola
7e895d5f04
Require REPLICASET test environment before using its constant
2016-10-24 14:17:25 -04:00
Jeremy Mikola
9ca935d9d0
PHPC-653: Tests for WriteResult methods
2016-10-24 14:17:25 -04:00
Jeremy Mikola
103aabed31
Add missing extends tests
2016-09-21 16:32:39 -04:00
Jeremy Mikola
11d823f8cd
PHPC-498: Fix expected output for ReadPreference and WriteConcern
...
These test fixes were missed in mongodb/mongo-php-driver#413 .
2016-09-19 16:52:38 -04:00
Derick Rethans
8f9e6c8c53
PHPC-498: ReadPreference, ReadConcern, and WriteConcern should serialize to BSON
2016-09-19 20:33:14 +01:00
Jeremy Mikola
05fcc2ea4f
PHPC-671: Avoid mongoc_client_t use-after-free by Cursor and Server
2016-05-31 15:10:53 -04:00
Jeremy Mikola
d1079cfabb
PHPC-564, PHPC-626: WriteResult should use libmongoc's public API
...
This changes WriteResult to encapsulate a bson_t, which is populated by mongoc_bulk_operation_execute(), instead of the private mongoc_write_result_t struct. This entailed significant changes to the WriteResult debug handler, so new tests have been added for it.
With phongo_execute_write() modified to populate a bson_t reply, we also changed error handling to pull a BulkWriteException message from bson_error_t (PHPC-626). That change required several error tests to be modified for the new message format.
2016-03-21 11:42:28 -04:00