Commit Graph

36 Commits

Author SHA1 Message Date
Derick Rethans 4a178a3b79 Disable test that fails on 32-bit platforms because the cursor ID can not be represented 2018-01-11 17:44:25 +00:00
Jeremy Mikola d8d44f0acf PHPC-1050: Command cursor should not invoke getMore at execution 2018-01-08 10:26:45 -05:00
Derick Rethans 9c6b6208fc Replace mongoc_client_command with mongoc_client_command_with_opts 2017-11-21 14:47:12 +00:00
Derick Rethans 5a00dcead0 PHPC-1036: Update test suite for MongoDB 3.6 2017-11-13 18:09:21 +00:00
Jeremy Mikola a5fe81bd06 PHPC-640: Revert TypeWrapper interface 2017-08-28 17:54:55 -04:00
Jeremy Mikola 726fb9a071 PHPC-996: Remove support for PHP 5.4 2017-08-14 12:19:30 -04:00
Jeremy Mikola ad3aeaf0d4 Test for iterating a Cursor with NoRewindIterator 2017-08-01 11:10:21 -04:00
Jeremy Mikola d8541658ad PHPC-839: Support maxAwaitTimeMS Query option for tailable await cursors 2017-05-24 20:29:11 -04:00
Jeremy Mikola 8bcd03c9b7 PHPC-586: Regression tests for tailable cursor iteration 2017-05-16 15:50:54 -04:00
Jeremy Mikola 122d7a86fd PHPC-640: Parse TypeWrapper classes in type maps 2017-04-26 11:23:26 -04:00
Jeremy Mikola 81b8d505d8 PHPC-937: Cursor::setTypeMap() and toPHP() should abort for invalid type map
This changes php_phongo_bson_typemap_to_state() to return a success boolean and also extracts class fetching into a separate php_phongo_bson_state_fetch_class() function to assist with supporting type wrappers in PHPC-640.
2017-04-26 11:23:26 -04:00
Jeremy Mikola cdd10fe3e0 Merge branch 'v1.2' 2017-03-15 11:07:49 -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 a011a98f94 PHPC-935: Validate filter and options in Query constructor
The regression test for PHPC-920 is obsolete, since we no longer allow construction of an error-prone Query object.
2017-03-13 15:43:08 -04:00
Jeremy Mikola 9fd59053d8 PHPC-920: Regression test for mongoc_cursor_destroy() crash 2017-03-13 12:46:09 -04:00
Jeremy Mikola 116a827fb0 PHPC-732: Regression test for use-after-free with Cursor wrapped in generator 2017-03-09 15:42:32 -05:00
Jeremy Mikola 139ad8e12c PHPC-924: Avoid unnecessary BSON conversion in Cursor::setTypeMap() 2017-03-03 09:23:02 -05:00
Jeremy Mikola 0dd057d4d7 PHPC-849: Fix leaking of current element in setTypeMap() 2016-12-12 12:59:00 -05:00
Jeremy Mikola 97a26a18e7 Remove unnecessary SKIPIFs from extends tests 2016-09-21 16:32:39 -04:00
Jeremy Mikola 7f485f921e PHPC-761: Tests can rely on MongoDB\BSON namespace 2016-08-05 14:06:58 -04:00
Jeremy Mikola ee751dc027 Test cursor iteration beyond last document for CDRIVER-1234 2016-06-02 18:35:28 -04:00
Jeremy Mikola a327a22cb8 Merge branch 'v1.1' 2016-06-02 11:20:03 -04: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 c0046a3e63 PHPC-673: Fix Cursor::isDead() tests for mongoc_cursor_is_alive()
This changes our tests based on upstream fixes for mongoc_cursor_is_alive() in CDRIVER-1221.
2016-05-17 16:12:13 -04:00
Jeremy Mikola 2fa57d7d05 Regression test for extending final classes 2016-02-09 15:25:14 -05:00
Jeremy Mikola 44ee3a346a PHPC-450: failReceivedGetmore does not support getMore commands
The fail point used in this test does not yet support 3.2's getMore command, so this must be run on 3.0 (or earlier). See: SERVER-21831

This change also splits the test into query/command variants, corrects the title (which was apparently copied from cursor-getmore-004.phpt), and removes the use of data fixtures (small documents inserted within the test work just fine for its purposes).
2015-12-10 12:16:36 -05:00
Jeremy Mikola a2e3b47f60 PHPC-450: Update open cursor check for MongoDB 3.2 2015-12-10 12:16:36 -05:00
Jeremy Mikola fe9fb63267 PHPC-465: Remove Manager's single write methods
Existing tests for single write methods were ported to executeBulkWrite() tests.
2015-10-21 19:32:42 -04:00
Derick Rethans 485b4866f0 Disable the test for a double wrap with IteratorIterator()
In HHVM, I can not detect this as there is no concept of running get_iterator()
on an object.
2015-09-02 18:07:41 +01:00
Hannes Magnusson 640c9b232e Make the relative path work 2015-08-03 13:57:22 -07:00
Jeremy Mikola 6eb0944565 PHPC-319: Convert top-level documents to stdClass by default
Update tests to expect stdClass for documents. Debug handlers and the Server getter methods will still decode documents as native arrays.
2015-07-11 00:38:05 -04:00
Hannes Magnusson 4ab595ef54 PHPC-304: Enable the test again -- and fix typo in the clean section! 2015-07-07 13:00:49 -07:00
Hannes Magnusson ed1cd1e30b PHPC-309: Bump tests 2015-06-30 10:04:36 -07:00
Jeremy Mikola 00711aa657 PHPC-308: Skip getmore test until libmongoc issues are resolved 2015-06-29 14:30:16 -04:00
Hannes Magnusson f41dc80601 PHPC-308: Failed getmore should throw exception 2015-06-09 16:12:43 -07:00
Hannes Magnusson d1e05c2e90 Organize cursor tests 2015-05-22 11:50:32 -07:00