Commit Graph

376 Commits

Author SHA1 Message Date
Jeremy Mikola
b6d0908ada PHPC-528: Support zval references when appending BSON 2015-12-30 16:16:06 -05:00
Derick Rethans
9aad2931d3 Fixed test case, where PHP 5 and PHP 7 call the type differently 2015-12-18 16:15:40 +00:00
Derick Rethans
c0d4f60a1d Fixed issues with PHP 7 and the new ReadConcern 2015-12-18 16:15:40 +00:00
Hannes Magnusson
97429ea258 PHPC-431: Add the testcase from the report 2015-12-16 10:22:58 +00:00
Jeremy Mikola
9d04bcd69c PHPC-509: Default Manager URI to "mongodb://localhost:27017/" 2015-12-14 18:01:31 -05:00
Jeremy Mikola
90d438e626 PHPC-448: Manager::getReadConcern() and URI test 2015-12-11 15:22:55 -05:00
Jeremy Mikola
12e6907e41 PHPC-448: Support readConcern option on Query 2015-12-11 15:22:55 -05:00
Jeremy Mikola
92348caffc PHPC-448: Implement ReadConcern class 2015-12-11 14:44:59 -05:00
Jeremy Mikola
bea901d170 PHPC-443: Support "bypassDocumentValidation" option in BulkWrite 2015-12-11 13:43: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
dee9ff9566 PHPC-450: Don't assert exact isMaster response when dumping Servers
Since isMaster's response varies by server version, we can omit it from expected Server dump output.
2015-12-10 12:16:36 -05:00
Jeremy Mikola
b54a8bf05b PHPC-450: Split query tests for OP_QUERY and find command
This also entails a change to done/end_of_event cursor field assertions. These are internal libmongoc cursor fields and their values aren't relevant to the tests. In the future, we may consider removing them from the Cursor's dump output.
2015-12-10 12:16:36 -05:00
Jeremy Mikola
d08d974ad3 PHPC-450: Profiled aggregate commands log the collection NS in 3.2 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
8c83588ac5 Register STANDALONE-3.0 with the test suite 2015-12-08 14:50:08 -05:00
Derick Rethans
206ea284ab This code has changed in 3.2, and make the error message clear 2015-12-08 16:49:54 +00:00
Hannes Magnusson
49225e1dc7 PHPC-495: Upgrade bundled libbson and libmongoc to 1.3.0 2015-12-02 18:11:46 +00:00
Jeremy Mikola
8dfe8d8221 PHPC-487: Regression tests for check_closed stream handler
bug0487-001.phpt was contributed by @prolic in mongodb/mongo-php-driver#132
2015-12-02 16:02:00 +01:00
Hannes Magnusson
e4471af527 Its a bit creepy seeing my family in bug reports 2015-11-25 22:23:41 -08:00
Jeremy Mikola
920e8362df PHPC-475: toJSON and fromJSON should thrown on error 2015-10-30 10:54:11 -04:00
Jeremy Mikola
9dbf277719 Tests for fromJSON() and toJSON() 2015-10-30 10:54:10 -04:00
Jeremy Mikola
b5f5216cc3 Rename WriteConcernError tests 2015-10-21 19:32:42 -04: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
Jeremy Mikola
b63c10f5f9 PHPC-310: Make BSON types final and disable serialization for now
PHONGO_CE_INIT() is used to both make the classes final and disable serialization. Additionally, we provide __wakeUp() to ensure deserialization is also disabled (per PHPC-190).

Eventually, BSON types will allow serialization (see PHPC-460) and the included error tests may be revised.
2015-10-19 17:58:14 -04:00
Jeremy Mikola
52dfd6b2d2 PHPC-444: Support options array in BulkWrite and executeInsert() 2015-10-15 15:44:17 -04:00
Jeremy Mikola
f8adae7b20 PHPC-407: Rename X509 error test and fix cert path
This preexisting test is functionally equivalent to the test attached to PHPC-407.
2015-10-14 17:22:34 -04:00
Jeremy Mikola
60b4cb4684 Rename X509 connection tests 2015-10-14 17:21:03 -04:00
Jeremy Mikola
f50332911d PHPC-441: slaveOk bit is now set on hinted secondary query
This was fixed by CDRIVER-903, which is included in libmongoc 1.2.0.
2015-10-14 14:16:46 -04:00
Hannes Magnusson
e75191e67a PHPC-441: Skip (xfail) these tests while the ticket is being worked on 2015-10-07 13:42:01 -07:00
Remi Collet
aeb2bc4669 PHPC-442: report PHP version in debug info 2015-10-05 17:28:23 -04:00
Remi Collet
efde19a1de report runtime version in debug mode 2015-10-05 17:28:23 -04:00
Jeremy Mikola
31661a383d Test write and WC error extraction for single write methods 2015-10-05 16:15:10 -04:00
Jeremy Mikola
51a9ad7ef4 PHPC-409: $readPreference is no longer sent to non-mongos nodes
Fixed by CDRIVER-704
2015-10-05 12:22:46 -04:00
Jeremy Mikola
98887ff579 PHPC-438: Debug handler should display null for no WC error 2015-10-05 12:22:46 -04:00
Hannes Magnusson
f4200872b9 PHPC-415: Add testcase 2015-10-01 15:22:27 -04:00
Hannes Magnusson
4d6157fb78 $readPreferences should not be sent to standalone server 2015-10-01 15:22:06 -04:00
Jeremy Mikola
69bff6b039 Use versioned URI for mongo-orchestration 2015-10-01 14:22:19 -04:00
Jeremy Mikola
c682fd3a86 Increase mongo-orchestration HTTP timeout 2015-10-01 14:21:54 -04:00
Jeremy Mikola
fd36e94fa8 PHPC-393: Ignore non-public properties when encoding BSON 2015-09-24 15:17:49 -04:00
Jeremy Mikola
c601054ea4 PHPC-430: Regression tests for Query arg corruption 2015-09-23 14:50:57 -04:00
Jeremy Mikola
dcbf5ae6ba PHPC-428: Remove support for WriteConcern fsync option 2015-09-23 11:47:53 -04:00
Jeremy Mikola
44a85b5438 PHPC-427: Do not set WC journal/fsync to false for NULL args 2015-09-22 14:10:50 -04:00
Jeremy Mikola
380aee31c9 Additional tests for WriteConcern debug handler 2015-09-22 14:07:23 -04:00
Jeremy Mikola
a6932d59e0 PHPC-423: WriteConcern should report default "w" option as null 2015-09-22 14:07:23 -04:00
Jeremy Mikola
3f8b851556 PHPC-426: WC ctor should throw for invalid $w and $wtimeout args 2015-09-22 14:06:37 -04:00
Jeremy Mikola
7757f1118a PHPC-425: WC ctor should accept int/string $w args w/o casting 2015-09-22 14:06:37 -04:00
Jeremy Mikola
6b5e7cacb2 WriteConcern ctor error test doesn't need EXPECTF 2015-09-22 14:06:37 -04:00
Jeremy Mikola
33e91fa908 Use throws() helper function in WriteConcern ctor error test 2015-09-22 14:06:37 -04:00
Derick Rethans
73ab90eb4d Skip logging tests for HHVM, which will use its own method 2015-09-22 11:02:03 -04:00
Derick Rethans
59b8ea09cc Better messages for when things go wrong with exceptions 2015-09-22 11:01:57 -04:00