Commit Graph

92 Commits

Author SHA1 Message Date
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
Derick Rethans
206ea284ab This code has changed in 3.2, and make the error message clear 2015-12-08 16:49:54 +00:00
Jeremy Mikola
52dfd6b2d2 PHPC-444: Support options array in BulkWrite and executeInsert() 2015-10-15 15:44:17 -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
Derick Rethans
59b8ea09cc Better messages for when things go wrong with exceptions 2015-09-22 11:01:57 -04:00
Jeremy Mikola
b1e882eeb0 Fix str_replace() newline replacement
Fixes e333fc0357
2015-08-19 13:47:40 -04:00
Jeremy Mikola
e333fc0357 Strip newlines from exception messages for more concise failures 2015-08-14 12:07:23 -04:00
Derick Rethans
fdfbdb1308 Added the error message to the failure cases.
This makes it much easier to debug what goes wrong, en-masse.
2015-08-14 11:59:46 -04:00
Hannes Magnusson
321ab56138 Skip test when not using the test vms 2015-08-03 13:57:22 -07:00
Jeremy Mikola
888b5dc56e PHP 5.3 compatibility for tools.php 2015-07-29 11:24:43 -04:00
Jeremy Mikola
194bbbd164 PHPC-311: Rename from/toArray() functions to from/toPHP() 2015-07-14 19:52:24 -04: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
5a4ca41f43 Don't start/stop servers on travis. We don't use MO here yet 2015-07-07 15:06:01 -07:00
Hannes Magnusson
5c18ea5c0e Add the START() servers to PHONGO-SERVERS, and remove it with DELETE()
This is needed so the $id becomes a constant in the test itself,
not only in the skipif section.
2015-07-07 12:59:51 -07:00
Hannes Magnusson
ed1cd1e30b PHPC-309: Bump tests 2015-06-30 10:04:36 -07:00
Hannes Magnusson
f41dc80601 PHPC-308: Failed getmore should throw exception 2015-06-09 16:12:43 -07:00
Hannes Magnusson
30f51f19c1 Cluster tests are slow 2015-05-22 11:50:33 -07:00
Hannes Magnusson
0e3090460f Move MO host resolving to tools 2015-05-22 11:50:33 -07:00
Hannes Magnusson
abecb2df7e PHPC-304: Add a failGetMore trigger 2015-05-22 11:50:33 -07:00
Hannes Magnusson
7f8a8edb36 Add a helper to know if we are in predictable (vagrant) env or not 2015-05-18 11:34:41 -07:00
Hannes Magnusson
8364cd4d77 PHPC-270: add TESTCOMMANDS() skipif to confirm mongod is running with required options 2015-04-23 19:56:37 -07:00
Hannes Magnusson
499bae18b4 PHPC-268: Add NEEDS() function to check if that environment is available 2015-04-23 19:22:14 -07:00
Hannes Magnusson
a52b7750ea PHPC-89: Bundle generated fixtures and make them easily loadable 2015-04-23 16:13:36 -07:00
Hannes Magnusson
9a75c1785e Make it possible to cleanup other db and collections used 2015-04-02 09:40:37 -07:00
Jeremy Mikola
5cefd644b9 PHPC-203: Result::toArray() should proxy iterator_to_array($this)
This introduces a BC break in that toArray() no longer returns the first result document. It must now be manually unwrapped from the return value.
2015-03-31 19:29:57 -04:00
Hannes Magnusson
099c344f72 PHPC-216: PHP5.3 test suite fixes 2015-03-30 15:55:05 -07:00
Hannes Magnusson
5dffbe2ac7 PHPC-216: PHP5.3 test suite fixes 2015-03-30 13:30:53 -07:00
Hannes Magnusson
c6a793d466 Add raises() helper, similar to throws() except for php warnings/notices/deprecated/... 2015-03-24 09:31:50 -07:00
Hannes Magnusson
3efb11c140 PHPC-180: Rename constant and pass the cleanup uri explicitly
- Use the new connection string constant that includes auth
- Call the cleanup routines explicitly when needed
2015-03-16 20:30:15 -07:00
Hannes Magnusson
f4ff765cba Fix tests for MongoDB 3.0.0 2015-03-04 13:45:15 -08:00
Hannes Magnusson
4acca269c2 This is a Manager, not MongoClient 2015-02-19 13:59:50 -08:00
Hannes Magnusson
a9823e706f Ignore me. Trim trailing space
This has been annoying me for a long time, especially the '<?php '
2015-02-19 13:57:58 -08:00
Hannes Magnusson
dad5d51b12 PHPC-107: Throw ExecutionTimeoutException for maxTimeMs 2015-02-19 13:15:04 -08:00
Hannes Magnusson
031a8dac1e PHPC-140: var_dump()ing WriteConcernError and WriteError 2015-01-27 14:18:29 -08:00
Hannes Magnusson
0f73eaa29c PHPC-128: if there is no cleanup uri then skipit 2015-01-06 21:19:00 -08:00
Hannes Magnusson
bb5f45c313 PHPC-118: Use MongoDB\Driver namespace for phongo 2014-12-30 14:58:33 -08:00
Hannes Magnusson
6cba74790e If there is no error, pass null to avoid the type hint 2014-12-23 11:01:58 -08:00
Hannes Magnusson
0d303e63bf PHPC-113: WriteConcernError is just one error, not multiple
This allows to actually retrieve - and know about - the error
2014-12-23 11:01:32 -08:00
Hannes Magnusson
ffa8006bce PHON-99: Add & Implement SSLConnectionException 2014-12-17 11:52:39 -08:00
Hannes Magnusson
23bc48ce48 exit on failure - and include a greppable error
Makes it easier to run the phpt directly
2014-12-16 15:38:51 -08:00
Hannes Magnusson
bbbda03d10 Seperate code from functions 2014-12-16 12:09:28 -08:00