7 Commits

Author SHA1 Message Date
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