Commit Graph

50 Commits

Author SHA1 Message Date
Hannes Magnusson
8739a1f777 PHP-1195: Integers are now represented as int32, as long as they fit 2014-12-02 17:20:07 -08:00
Hannes Magnusson
a0f2e15126 PHP-1296: Implement WriteConcerns 2014-11-26 14:04:30 -08:00
Hannes Magnusson
c17001ac30 PHP-1295: Memory leak when generating ID for inserts 2014-11-26 13:37:09 -08:00
Hannes Magnusson
bccdd2771f PHP-1294: Emtpy Query Result should still return QueryResult 2014-11-26 13:04:28 -08:00
Hannes Magnusson
27ae67c5e2 Fixed various memory leaks and compiler warnings 2014-11-21 17:30:58 -08:00
Hannes Magnusson
23bb9a63ff PHP-1189: Implement BSON regex type 2014-11-21 10:53:10 -08:00
Jeremy Mikola
76d49f792b PHP-1189: BSON Regex type 2014-11-21 10:05:29 -08:00
Hannes Magnusson
f5b5d6ddef PHP-1187: Implement BSON binary type 2014-11-21 09:51:27 -08:00
Hannes Magnusson
dfbef380a5 PHP-1188: Implement BSON code and code with scope types
NOTE: This type is not supported by Extended JSON :(
2014-11-20 17:33:10 -08:00
Hannes Magnusson
4a8b86c1a2 PHP-1191: Implement BSON timestamp type 2014-11-20 15:47:43 -08:00
Hannes Magnusson
2fddcd6e0a Fix test: Whoopsy. Missed the DONE section 2014-11-20 15:46:09 -08:00
Hannes Magnusson
057469c997 PHP-1194: Implement BSON MaxKey and MinKey types 2014-11-20 15:01:46 -08:00
Hannes Magnusson
c439fbcc67 PHP-1190: Implement BSON\UTCDateTime 2014-11-19 17:07:13 -08:00
Hannes Magnusson
7636ed4e76 PHP-1185: Add more Cursor related methods 2014-11-19 17:05:10 -08:00
Hannes Magnusson
0d68cea77d Fixed PHP-1185: Implement Cursor class 2014-11-19 13:35:02 -08:00
Hannes Magnusson
5dc733469b PHP-1183: Implement default Iterator class for QueryResult & CommandResult 2014-11-19 12:55:38 -08:00
Hannes Magnusson
554c4105d1 Do not test the error messages from the server
The error message vary depending on the server version
2014-11-19 10:21:42 -08:00
Jeremy Mikola
4086691a3e PHP-1180: Create make target to install Composer dependencies (for tests)
Due to how the Makefile is generated, it's non-trivial to add the "composer" target as a dependency of "test". As a compromise, we'll skip tests which require unavailable dependencies.
2014-10-16 20:45:39 -04:00
Jeremy Mikola
f24e900fca Functional tests for sorted queries 2014-10-16 16:02:26 -04:00
Jeremy Mikola
d6f181710f Use Faker to create user data fixtures 2014-10-16 16:02:26 -04:00
Jeremy Mikola
ec30b7dccf Use require_once in skip test includes 2014-10-16 16:02:26 -04:00
Jeremy Mikola
426976c62a Use "phongo_test" as default test database 2014-10-16 16:02:26 -04:00
Jeremy Mikola
35067cf017 Use preg_replace() for generating collection name from test file
This builds on what already existed in the current driver and adds the ".skip" removal. It also replaces hyphens with underscores to ensure that the collection is easy to access from the shell.
2014-10-16 16:02:26 -04:00
Jeremy Mikola
7f1e190c95 Clean up hex_dump() source and add citation 2014-10-16 16:02:26 -04:00
Jeremy Mikola
773bc909cb PHP-1173: Use string "majority" for WriteConcern::MAJORITY
The purpose is two-fold: abstract libmongo'c constant (defined as -3) from our users and ensure the string "majority" is sets the struct's "w" field properly even if our constant is not used.
2014-10-03 16:02:53 -04:00
Jeremy Mikola
5d6052e884 PHP-1142: Dump WriteResult object in write tests 2014-09-29 11:37:47 -04:00
Jeremy Mikola
d702c53561 PHP-1068: Test that CommandResult is iterable
Use ping instead of isMaster since the result document is more predictable.
2014-09-05 17:02:08 -04:00
Jeremy Mikola
4eae11b928 Fix setting of zvals with zend_hash_update() when constructing query
New tests cases for fixed hash update code paths on $orderby and $query keys.
2014-08-25 13:55:59 -04:00
Jeremy Mikola
efcbf0ea6d Update tests for revised Query constructor API 2014-08-25 13:55:59 -04:00
Hannes Magnusson
a3ce178fae Move BSON encode/decode stuff into BSON namespace
BSON\toArray()
BSON\toJSON()
BSON\fromArray()
BSON\fromJSON()
2014-08-13 21:31:50 +00:00
Hannes Magnusson
cdaa3b074d Implement BSON\ObjectID properly 2014-08-06 21:59:24 +00:00
Hannes Magnusson
ad331ffb65 Only skip it on travis 2014-07-31 22:15:29 +00:00
Hannes Magnusson
d447f09294 s/executeWrite/executeWriteBatch/g as the class is called WriteBatch 2014-07-30 01:54:49 +00:00
Hannes Magnusson
19cfa46ee1 new tests 2014-07-21 22:07:48 +00:00
Jeremy Mikola
619c29d3c1 Revise Manager::executeUpdate() error test
The multi and upsert options are not mutually exclusive, so this should not be an error case.
2014-07-17 15:31:28 -04:00
Hannes Magnusson
0e9e8a8677 skip on travis.. 2014-07-16 18:54:36 +00:00
Hannes Magnusson
03da43eb56 Add a new none flag 2014-07-16 17:59:47 +00:00
Hannes Magnusson
f6cbc69e91 Fix the remaining tests 2014-07-16 17:59:25 +00:00
Hannes Magnusson
24cd7bc571 Get tests to pass 2014-07-16 17:59:25 +00:00
Hannes Magnusson
5640a4c9b0 fix test 2014-07-16 17:59:25 +00:00
Hannes Magnusson
c32d944dc2 fix tests 2014-07-16 17:59:25 +00:00
Hannes Magnusson
173310ee7a api changes 2014-07-16 17:59:24 +00:00
Hannes Magnusson
164692ab63 Fix test 2014-07-11 07:38:49 +00:00
Hannes Magnusson
4590a66c59 Touch up WriteResult as return value 2014-07-11 07:31:22 +00:00
Hannes Magnusson
3c852854b6 Fix tests and push getServer() info down 2014-07-11 07:31:21 +00:00
Jeremy Mikola
40b090a821 Tests for constants and Server/Manager execute methods 2014-07-08 14:31:09 -04:00
Hannes Magnusson
c4ebabeb17 Fix calling continue in global scope 2014-07-08 01:05:18 +00:00
Hannes Magnusson
ca8a7009d0 Batch test and fix skipping test during cleanup phase 2014-07-03 20:26:59 +00:00
Hannes Magnusson
a7effd93a0 Simplify testing 2014-07-02 20:48:59 +00:00
Hannes Magnusson
08f7aef8b5 Add BSON tests 2014-06-20 14:55:03 -07:00